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