知识付费后台一号通注册后登录提示参数有误
原因:跳转参数有缺失
修改文件: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');
}
}