|
@@ -185,9 +185,12 @@ class Login extends Controller{
|
|
|
$in_data['id_code'] = $id_code;
|
|
|
$user_info = Db::table('dx_user')->where($in_data)->where('is_deleted',0)->find();
|
|
|
if ($user_info){
|
|
|
- if ($user_info['status'] !=1){
|
|
|
+ if ($user_info['status'] ==2){
|
|
|
$this->error('审核未通过','','400');
|
|
|
- }else{
|
|
|
+ }elseif ($user_info['status'] ==0){
|
|
|
+ $this->error('审核中','','400');
|
|
|
+ }
|
|
|
+ else{
|
|
|
$token_arr = [
|
|
|
'time' => Config('jwt_time')+time(),
|
|
|
'uid'=>$user_info['id'],
|