From 9b7c7e8fd4dba10da221bd62cbf4947ae6f3c02b Mon Sep 17 00:00:00 2001 From: devil Date: Mon, 17 Feb 2020 11:43:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/controller/Common.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/application/index/controller/Common.php b/application/index/controller/Common.php index e5b8c82ab..aefa0666b 100755 --- a/application/index/controller/Common.php +++ b/application/index/controller/Common.php @@ -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']); - } } /**