知識(shí)付費(fèi)后臺(tái)一號(hào)通注冊(cè)后登錄提示參數(shù)有誤
原因:跳轉(zhuǎn)參數(shù)有缺失
修改文件: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');
}
}