This commit is contained in:
张良(004796)
2024-04-01 10:28:06 +08:00
parent f08dc9b99c
commit 153041bc16
4 changed files with 6 additions and 1 deletions

View File

@@ -56,7 +56,7 @@ public class UserGiftServiceImpl extends ServiceImpl<UserGiftMapper, UserGift> i
@Override
@Transactional(rollbackFor = Exception.class)
public GiftConsumerResp giveGift(GiveGiftReq query) {
Long fromUserId = LoginHelper.getUserId();
Long fromUserId = query.getFromUserId();
Gift gift = giftService.getById(query.getGiftId());
if(gift == null){
throw new ServiceException("礼物不存在");