bug
This commit is contained in:
parent
e73ff9722c
commit
e7494cd08e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user