Skip to content

Commit

Permalink
完善 无法重复点赞
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiba-little-black-cat committed Aug 29, 2023
1 parent 95d1710 commit 6489e81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/favorite/service/favorite.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func (c FavoriteSrv) FavoriteAction(ctx context.Context, req *favoritePb.Favorit
if actionType == 1 {
// 不能重复点赞
isFavorite, _ := dao.NewFavoriteDao(ctx).GetIsFavoriteByUserIdAndVid(int64(uid), vid)

if isFavorite {
FavoriteActionResponseData(res, 1, "重复点赞")
return nil
Expand Down

0 comments on commit 6489e81

Please sign in to comment.