分类图标,是否点赞,小程序登录

This commit is contained in:
2025-11-25 17:14:14 +08:00
parent e5f2f7d7f7
commit 236bf93ed7
9 changed files with 78 additions and 3 deletions
+3
View File
@@ -105,5 +105,8 @@ class PostLikeService
$data['sender_user_id'] = $res['user_id'];
$data['type'] = 1;
MessageNotice::create($data);
$post = Post::where(['id' => $data['post_id']])->first();
$post['like'] = $post['like']+1;
$post->save();
}
}