浏览代码

注册登录

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