Commit 1eba0453 authored by 刘小敏's avatar 刘小敏

fix(share): 拒绝自己分享自己时返回错误

parent 6e68560a
...@@ -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;
} }
......
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