提交 9b7c7e8f 编写于 作者: D devil

系统初始化逻辑优化

上级 481b639f
......@@ -149,6 +149,9 @@ class Common extends Controller
*/
private function SystemInit()
{
// 公共参数
$this->params = input();
// 配置信息初始化
ConfigService::ConfigInit();
......@@ -157,6 +160,12 @@ class Common extends Controller
{
\think\facade\Url::root(__MY_ROOT_PUBLIC__.'index.php?s=');
}
// 推荐人
if(!empty($this->params['referrer']))
{
session('share_referrer_id', $this->params['referrer']);
}
}
/**
......@@ -170,15 +179,6 @@ class Common extends Controller
{
// 用户数据
$this->user = UserService::LoginUserInfo();
// 公共参数
$this->params = input();
// 推荐人
if(!empty($this->params['referrer']))
{
session('share_referrer_id', $this->params['referrer']);
}
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册