|
|
|
@ -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 {
|
|
|
|
|
/* 读取数据库中的配置 */
|
|
|
|
|