@@ -124,7 +124,7 @@ class User extends Api
if ($exists) {
$this->error('邮箱已存在');
}
- $user->username = $username;
+ $user->email = $email;
$user->save();
$this->success('编辑成功');