This commit is contained in:
齐天大圣 2024-03-06 14:51:30 +08:00
parent e73ff9722c
commit e7494cd08e

View File

@ -199,6 +199,9 @@ public class CardGiftServiceImpl extends ServiceImpl<CardGiftMapper, CardGift> i
queryWrapper.eq(CardGift::getActivateStatus,"0");
//验证兑换卡的卡密
CardGift one = getOne(queryWrapper);
if (!one.getSailStatus().equals("1")){
return cardGift;
}
if (ObjectUtils.isNotEmpty(one) && ObjectUtils.isNotEmpty(cardGift.getCardPassword()) && cardGift.getCardPassword().equals(one.getCardPassword())){
one.setActivateStatus("1");
one.setUserId(userId);