Commit 0ee74448 authored by 刘小敏's avatar 刘小敏

注销账号软删除代码放开

parent 285b276b
......@@ -347,8 +347,8 @@ class User extends Common
if (!$this->request->isPost()) {
$this->error('');
}
// $userAuth = new UserAuth();
// $userAuth->logoff();
$userAuth = new UserAuth();
$userAuth->logoff();
$this->success('注销成功');
}
......
......@@ -228,7 +228,7 @@ class UserAuth
{
$user = auth_user();
$user = UserModel::get($user->id);
// $user->delete(); // 物理删除账号,慎用
$user->delete(); // 软删除
$this->logout();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment