分类图标,是否点赞,小程序登录
This commit is contained in:
@@ -103,5 +103,8 @@ class PostFavoriteService
|
||||
$data['sender_user_id'] = $res['user_id'];
|
||||
$data['type'] = 2;
|
||||
MessageNotice::create($data);
|
||||
$post = Post::where(['id' => $data['post_id']])->first();
|
||||
$post['favorite'] = $post['favorite']+1;
|
||||
$post->save();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user