知识付费后台一号通注册后登录提示参数有误
原因:跳转参数有缺失
修改文件:application\admin\controller\setting\SystemPlat
修改方法:index()
$this->assign('str', 'index');
修改方法:meal()
public function meal()
{
if (!CacheService::get($this->cacheKey, '')) {
return $this->redirect(Url::build('login') . '?url=meal');
}
try {
$info = $this->crmebPlatHandle->info();
if (!isset($info['status']) || $info['status'] != 200) {
$info = [];
} else {
$info = $info['data'];
}
} catch (\Throwable $e) {
$info = [];
}
if ($info) {
$this->assign('info', $info);
return $this->fetch();
} else {
$this->assign('str', 'meal');
$this->assign('account', $this->account);
$this->assign('password', $this->secret);
return $this->fetch('login');
}
}
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}