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

master
ELF 5 years ago
commit e58b20b576

@ -162,6 +162,15 @@ class PromoteModel extends Model{
}
/**
* 退出登录
*/
public function logout(){
session('promote_auth', null);
session('promote_auth_sign', null);
session('game_divide_second_pwd', null);
}
/**
* 验证用户密码
* @param int $uid 用户id

@ -283,4 +283,13 @@ class IndexController extends HomeController
$this->assign('data', $data);
$this->display();
}
/**
* 退出登录
*/
public function logout(){
$Promote = new PromoteApi();
$Promote->logout();
redirect(U('Index/index'));
}
}

@ -148,7 +148,7 @@
<div class="header-right">
<span class="pinfo jstime">今天是:<span></span></span>
<span class="pinfo">您好!{:session('promote_auth.account')}</span>
<a class="pinfo" href="{:U('Public/logout')}" ><img src="__IMG__/20180207/icon_normal_tuichu.png"><!--{:L('Quit')}--></a>
<a class="pinfo" href="{:U('Index/logout')}" ><img src="__IMG__/20180207/icon_normal_tuichu.png"><!--{:L('Quit')}--></a>
</div>
</div>
<!--结束 头部个人信息-->

@ -77,6 +77,13 @@ class PromoteApi extends Api{
return $this->model->login($username, $password);
}
/**
* 退出登录
*/
public function logout(){
$this->model->logout();
}
/**
*添加推广员
*/

Loading…
Cancel
Save