临时新增账号登陆处理

master
chenzhi 3 years ago
parent ac96aa187e
commit a02b5ef8e6

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