From 9d3dfd622b001fa28d4ec16cdfe136f621363b0f Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Sat, 9 Nov 2019 15:43:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E5=B9=B3=E5=8F=B0->=E9=80=80?= =?UTF-8?q?=E5=87=BA=E7=99=BB=E5=BD=95--=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Model/PromoteModel.class.php | 3 ++- Application/Home/Controller/IndexController.class.php | 3 ++- Application/User/Api/PromoteApi.class.php | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Application/Admin/Model/PromoteModel.class.php b/Application/Admin/Model/PromoteModel.class.php index 40d0da370..a1499ae4b 100644 --- a/Application/Admin/Model/PromoteModel.class.php +++ b/Application/Admin/Model/PromoteModel.class.php @@ -165,7 +165,8 @@ class PromoteModel extends Model{ /** * 退出登录 */ - public function logout(){ + public function logout() + { session('promote_auth', null); session('promote_auth_sign', null); session('game_divide_second_pwd', null); diff --git a/Application/Home/Controller/IndexController.class.php b/Application/Home/Controller/IndexController.class.php index 7f311defd..f91d6a4e6 100644 --- a/Application/Home/Controller/IndexController.class.php +++ b/Application/Home/Controller/IndexController.class.php @@ -287,7 +287,8 @@ class IndexController extends HomeController /** * 退出登录 */ - public function logout(){ + public function logout() + { $Promote = new PromoteApi(); $Promote->logout(); redirect(U('Index/index')); diff --git a/Application/User/Api/PromoteApi.class.php b/Application/User/Api/PromoteApi.class.php index e527967fc..1fdff9a27 100644 --- a/Application/User/Api/PromoteApi.class.php +++ b/Application/User/Api/PromoteApi.class.php @@ -80,7 +80,8 @@ class PromoteApi extends Api{ /** * 退出登录 */ - public function logout(){ + public function logout() + { $this->model->logout(); }