123
This commit is contained in:
@@ -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("礼物不存在");
|
||||
|
||||
Reference in New Issue
Block a user