소스 검색

注册登录

15954078560 2 년 전
부모
커밋
547c672914
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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'));