...
|
...
|
@@ -165,7 +165,7 @@ class User extends Api |
|
|
$user = $this->auth->getUser();
|
|
|
$username = $this->request->post('username');
|
|
|
$nickname = $this->request->post('nickname');
|
|
|
$bio = $this->request->post('bio');
|
|
|
$bio = $this->request->post('bio','这个人很懒,什么也没有留下');
|
|
|
$avatar = $this->request->post('avatar', '', 'trim,strip_tags,htmlspecialchars');
|
|
|
if ($username) {
|
|
|
$exists = \app\common\model\User::where('username', $username)->where('id', '<>', $this->auth->id)->find();
|
...
|
...
|
|