取消点赞,取消评论

This commit is contained in:
2025-12-01 17:17:15 +08:00
parent 36e7144e8a
commit 4c1d23b685
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ class PostFavoriteService
$where = [];
$where['post_id'] = $param['post_id'];
$where['user_id'] = $param['user_id'];
$where['user_id'] = $request->user->uid;
$count = PostFavorite::where($where)->delete();
if ($count) {