Browse Source

用户和教练的手机号用不到了

lizhen_gitee 6 tháng trước cách đây
mục cha
commit
41eb465ba4
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      application/api/controller/User.php

+ 2 - 2
application/api/controller/User.php

@@ -129,7 +129,7 @@ class User extends Api
         $lastname  = input('lastname');
 
         $countrycode = input('countrycode',65,'intval');
-        $mobile      = input('mobile');
+        $mobile      = input('mobile','');
 //        $captcha     = input('captcha');
 
         $email        = input('email');
@@ -137,7 +137,7 @@ class User extends Api
 
         $password     = input('password');
 
-        if (!$firstname || !$lastname || !$mobile || !$email || !$password) {
+        if (!$firstname || !$lastname || !$email || !$password) {
             $this->error(__('Invalid parameters'));
         }