|
@@ -92,12 +92,12 @@ class User extends Base
|
|
|
$this->error($validate->getError());
|
|
|
}
|
|
|
$username = $params['username'] ?? '';
|
|
|
- $avatar = $params['avatar'];
|
|
|
+ // $avatar = $params['avatar'];
|
|
|
$nickname = $params['nickname'];
|
|
|
$bio = $params['bio'] ??'';
|
|
|
$age = $params['age'];
|
|
|
$gender = $params['gender'];
|
|
|
- $avatar = str_replace(cdnurl('', true), '', $avatar);
|
|
|
+ // $avatar = str_replace(cdnurl('', true), '', $avatar);
|
|
|
// username 不传,则不修改
|
|
|
if ($username) {
|
|
|
$user->username = $username;
|
|
@@ -110,7 +110,7 @@ class User extends Base
|
|
|
$user->bio = $bio;
|
|
|
}
|
|
|
$user->nickname = $nickname;
|
|
|
- $user->avatar = $avatar;
|
|
|
+ // $user->avatar = $avatar;
|
|
|
$user->age = $age;
|
|
|
$user->gender = $gender;
|
|
|
$user->save();
|