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