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
1eba0453
Commit
1eba0453
authored
Jul 07, 2026
by
刘小敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(share): 拒绝自己分享自己时返回错误
parent
6e68560a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Share.php
addons/shopro/controller/Share.php
+1
-1
No files found.
addons/shopro/controller/Share.php
View file @
1eba0453
...
@@ -29,7 +29,7 @@ class Share extends Common
...
@@ -29,7 +29,7 @@ class Share extends Common
$shareId
=
$params
[
'shareId'
];
$shareId
=
$params
[
'shareId'
];
if
(
$shareId
==
$userId
)
{
if
(
$shareId
==
$userId
)
{
custom_log
(
'[share.add] 自己点自己链接,拒绝写入, shareId='
.
$shareId
.
' == user_id='
.
$userId
,
$userId
,
'share'
,
'warning'
);
custom_log
(
'[share.add] 自己点自己链接,拒绝写入, shareId='
.
$shareId
.
' == user_id='
.
$userId
,
$userId
,
'share'
,
'warning'
);
$this
->
success
(
""
);
$this
->
error
(
""
);
return
;
return
;
}
}
...
...
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