15954078560 2 лет назад
Родитель
Сommit
70f7bf5bc1
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      application/api/controller/User.php

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

@@ -2006,7 +2006,7 @@ class User extends Api
 
     //手机号登录/注册
     public function mobileloginregister() {
-        $user_token = input('user_token', '', 'trim');
+        /*$user_token = input('user_token', '', 'trim');
         if (!$user_token) {
             $this->error('参数缺失');
         }
@@ -2025,12 +2025,12 @@ class User extends Api
         $user_info = (array)$user_info;
         if (!$user_info) {
             $this->error('您的网络开小差了~');
-        }
+        }*/
 
-        $mobile = isset($user_info['phoneNum']) ? $user_info['phoneNum'] : '';
-        if (!$mobile) {
+//        $mobile = isset($user_info['phoneNum']) ? $user_info['phoneNum'] : '';
+//        if (!$mobile) {
             $mobile = $this->request->post('mobile');
-        }
+//        }
         if (!$mobile) {
             $this->error(__('Invalid parameters'));
         }