소스 검색

注册登录

15954078560 2 년 전
부모
커밋
225007819e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/api/controller/User.php

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

@@ -2027,7 +2027,7 @@ class User extends Api
             $this->error('您的网络开小差了~');
         }
 
-        $mobile = $user_info['phoneNum'];
+        $mobile = isset($user_info['phoneNum']) ? $user_info['phoneNum'] : '';
         if (!$mobile) {
             $mobile = $this->request->post('mobile');
         }