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

Loading…
Cancel
Save