|
@@ -22,11 +22,11 @@ class Auth
|
|
|
Dever::alert('登录失败,手机号错误,请重新输入');
|
|
|
}
|
|
|
|
|
|
- if ($user) {
|
|
|
+ if ($user && $user['status'] == 2) {
|
|
|
$data = Dever::load('passport/reg')->getSign($user['id']);
|
|
|
return $data;
|
|
|
} else {
|
|
|
- Dever::alert('登录失败');
|
|
|
+ Dever::alert('登录失败,您还未通过审核');
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -98,7 +98,7 @@ class Auth
|
|
|
*/
|
|
|
public function getUpInfo()
|
|
|
{
|
|
|
- $this->data['role'] = Dever::db('setting/role')->getInfo(array('opset' => 1));
|
|
|
+ $this->data['role'] = Dever::db('setting/role')->getInfo(array('isbuy' => 1));
|
|
|
$this->data['config'] = Dever::db('setting/base')->find();
|
|
|
|
|
|
return $this->data;
|