推广平台->退出登录--更新

master
chenxiaojun 5 years ago
parent 467b193037
commit 9d3dfd622b

@ -165,7 +165,8 @@ class PromoteModel extends Model{
/** /**
* 退出登录 * 退出登录
*/ */
public function logout(){ public function logout()
{
session('promote_auth', null); session('promote_auth', null);
session('promote_auth_sign', null); session('promote_auth_sign', null);
session('game_divide_second_pwd', null); session('game_divide_second_pwd', null);

@ -287,7 +287,8 @@ class IndexController extends HomeController
/** /**
* 退出登录 * 退出登录
*/ */
public function logout(){ public function logout()
{
$Promote = new PromoteApi(); $Promote = new PromoteApi();
$Promote->logout(); $Promote->logout();
redirect(U('Index/index')); redirect(U('Index/index'));

@ -80,7 +80,8 @@ class PromoteApi extends Api{
/** /**
* 退出登录 * 退出登录
*/ */
public function logout(){ public function logout()
{
$this->model->logout(); $this->model->logout();
} }

Loading…
Cancel
Save