|
@@ -57,7 +57,7 @@ class User extends Api
|
|
|
{
|
|
|
$avatar = input('avatar', '', 'trim,strip_tags,htmlspecialchars');
|
|
|
$nickname = input('nickname', '');
|
|
|
- $mobile = input('mobile', '');
|
|
|
+// $mobile = input('mobile', '');
|
|
|
$gender = input('gender', '1');
|
|
|
$birthday = input('birthday', '');
|
|
|
$height = input('height', '');
|
|
@@ -76,13 +76,13 @@ class User extends Api
|
|
|
$data['nickname'] = $nickname;
|
|
|
}
|
|
|
|
|
|
- if(!empty($mobile))
|
|
|
+ /*if(!empty($mobile))
|
|
|
{
|
|
|
if (\app\common\model\User::where('mobile', $mobile)->where('id', '<>', $this->auth->id)->find()) {
|
|
|
$this->error('手机号已被其他人使用');
|
|
|
}
|
|
|
$data['mobile'] = $mobile;
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
if($gender != $this->auth->gender)
|
|
|
{
|