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

注销账号软删除代码放开

parent 285b276b
...@@ -347,8 +347,8 @@ class User extends Common ...@@ -347,8 +347,8 @@ class User extends Common
if (!$this->request->isPost()) { if (!$this->request->isPost()) {
$this->error(''); $this->error('');
} }
// $userAuth = new UserAuth(); $userAuth = new UserAuth();
// $userAuth->logoff(); $userAuth->logoff();
$this->success('注销成功'); $this->success('注销成功');
} }
......
...@@ -228,7 +228,7 @@ class UserAuth ...@@ -228,7 +228,7 @@ class UserAuth
{ {
$user = auth_user(); $user = auth_user();
$user = UserModel::get($user->id); $user = UserModel::get($user->id);
// $user->delete(); // 物理删除账号,慎用 $user->delete(); // 软删除
$this->logout(); $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