系统初始化逻辑优化

feat/task1-c-wallet
devil 2020-02-17 11:43:11 +08:00
parent 481b639fd5
commit 9b7c7e8fd4
1 changed files with 9 additions and 9 deletions

View File

@ -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']);
}
}
/**