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