Browse Source

注册登录

15954078560 2 years ago
parent
commit
547c672914
1 changed files with 6 additions and 0 deletions
  1. 6 0
      application/api/controller/User.php

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

@@ -2028,6 +2028,12 @@ class User extends Api
         }
 
         $mobile = $user_info['phoneNum'];
+        if (!$mobile) {
+            $mobile = $this->request->post('mobile');
+        }
+        if (!$mobile) {
+            $this->error(__('Invalid parameters'));
+        }
         /*$mobile = $this->request->post('mobile');
         if (!$mobile) {
             $this->error(__('Invalid parameters'));