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);