From 4e06af0acf8710e5ab2e5547e54459b0a0849aee Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Wed, 20 Nov 2019 18:14:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95sdk=EF=BC=8C=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E8=87=B3=E8=B4=AD=E4=B9=B0=E8=B6=85=E7=BA=A7=E7=AD=BE?= =?UTF-8?q?=EF=BC=8C=E6=97=A0=E9=9C=80=E9=87=8D=E6=96=B0=E7=99=BB=E9=99=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Mobile/Controller/SsgController.class.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Application/Mobile/Controller/SsgController.class.php b/Application/Mobile/Controller/SsgController.class.php index ffaa3534a..1b684e747 100644 --- a/Application/Mobile/Controller/SsgController.class.php +++ b/Application/Mobile/Controller/SsgController.class.php @@ -48,6 +48,23 @@ class SsgController extends BaseController { } public function home(){ +// $users = session("user_auth"); +// var_dump($users);die(); + + if (I('user_token')) { + + $userToker = I('user_token'); + $where['user_token'] = $userToker; + $isToken = M('user','tab_')->field('id as user_id,account,nickname')->where($where)->find(); + + if ($isToken) { + session("user_auth",$isToken); + $this->redirect("Ssg/index"); + } else { + $this->redirect("Ssg/login"); + } + + } //获取客服qq $appqq = M("config", "sys_")->field('value')->where("name='APP_QQ'")->find()['value']; $promoteId = I("promote_id", 0);