Merge branch 'feature/promote' of 47.111.118.107:/srv/git/platform into feature/promote

master
ELF 5 years ago
commit 9fde84f6ca

@ -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