瀏覽代碼

注册登录

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');
         }