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