zhangxiaobin 1 year ago
parent
commit
4facf9cdfe
1 changed files with 6 additions and 0 deletions
  1. 6 0
      application/api/controller/User.php

+ 6 - 0
application/api/controller/User.php

@@ -1154,6 +1154,9 @@ class User extends Api
             $verification->mobile = 1;
             $user->verification = $verification;
             $user->mobile = $mobile;
+            if ($user->status == 'new') {
+                $user->status = 'normal';
+            }
             $userRes = $user->save();
 
             if ($userRes) {
@@ -1207,6 +1210,9 @@ class User extends Api
             }
 
             $user->openid = $openid;
+            if ($user->status == 'new') {
+                $user->status = 'normal';
+            }
             $userRes = $user->save();
             if ($userRes) {
                 $where['openid'] = '';