diff --git a/Application/Mobile/Controller/BaseController.class.php b/Application/Mobile/Controller/BaseController.class.php index 522eae603..718ecb54d 100644 --- a/Application/Mobile/Controller/BaseController.class.php +++ b/Application/Mobile/Controller/BaseController.class.php @@ -72,12 +72,12 @@ class BaseController extends Controller { /* 退出登录 */ public function logout() { - $member = new SuserApi; - if($member->logout()>0) { - $this->ajaxReturn(array('status' => 1, 'msg' => '退出成功!')); - } else { - $this->ajaxReturn(array('status' => 0, 'msg' => '已退出!')); - } + $member = new SuserApi; + if($member->logout()>0) { + $this->ajaxReturn(array('status' => 1, 'msg' => '退出成功!')); + } else { + $this->ajaxReturn(array('status' => 0, 'msg' => '已退出!')); + } } diff --git a/Application/Mobile/Controller/SsgController.class.php b/Application/Mobile/Controller/SsgController.class.php index 93e4a4ebf..df8d4d8ed 100644 --- a/Application/Mobile/Controller/SsgController.class.php +++ b/Application/Mobile/Controller/SsgController.class.php @@ -240,6 +240,8 @@ class SsgController extends BaseController { $v['pay_status'] = 0; } } + $appqq = M("config", "sys_")->field('value')->where("name='APP_QQ'")->find()['value']; + $this->assign("app_qq", $appqq); $this->assign("data_list",$game_list); $this->display(); } @@ -331,6 +333,11 @@ class SsgController extends BaseController { \Think\Log::record('缓存清理业务触发'); session(null); } + //退出 + public function logout() { + session("user_auth",null); + redirect(U("ssg/login")); + } //发送验证码 public function sendPhoneCode() { diff --git a/Application/Mobile/View/Ssg/index.html b/Application/Mobile/View/Ssg/index.html index 57babcca4..015a78cec 100644 --- a/Application/Mobile/View/Ssg/index.html +++ b/Application/Mobile/View/Ssg/index.html @@ -78,12 +78,12 @@