Commit 6e68560a authored by 刘小敏's avatar 刘小敏

fix(share): 阻止自己分享自己时返回正确响应

parent 3ff6ee1d
...@@ -29,7 +29,8 @@ class Share extends Common ...@@ -29,7 +29,8 @@ 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');
return false; $this->success("");
return;
} }
$shareInfo = ShareModel::log($user, $params); $shareInfo = ShareModel::log($user, $params);
......
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