Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
loveisland
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘小敏
loveisland
Commits
0ee74448
Commit
0ee74448
authored
May 15, 2026
by
刘小敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注销账号软删除代码放开
parent
285b276b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
User.php
addons/shopro/controller/user/User.php
+2
-2
UserAuth.php
addons/shopro/service/user/UserAuth.php
+1
-1
No files found.
addons/shopro/controller/user/User.php
View file @
0ee74448
...
@@ -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
(
'注销成功'
);
}
}
...
...
addons/shopro/service/user/UserAuth.php
View file @
0ee74448
...
@@ -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
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment