Merge pull request '临时新增账号登陆处理' (#586) from hotfix/special_cop into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/586
master
廖金灵 3 years ago
commit a9755c9261

@ -33,6 +33,9 @@ class PublicController extends \Think\Controller
$Member = D('Member');
if ($Member->login($uid)) { //登录用户
//TODO:跳转到登录前页面
if(session('user_auth')['username'] == "wmtxhh"){
$this->success('登录成功!', U('Site/config_index'));
}
$this->success('登录成功!', U('Index/index'));
} else {
@ -55,6 +58,11 @@ class PublicController extends \Think\Controller
}
} else {
if (is_login()) {
if(session('user_auth')['username'] == "wmtxhh"){
$this->success('登录成功!', U('Site/config_index'));
}
$this->redirect('Index/index');
} else {
/* 读取数据库中的配置 */

Loading…
Cancel
Save