This commit is contained in:
dute7liang
2024-01-20 19:59:36 +08:00
parent 7956a89ef0
commit 3b6070428c
9 changed files with 116 additions and 6 deletions

View File

@@ -81,16 +81,16 @@ public class AwardManager {
return;
}
UserInfo userInfo = userInfoService.getByUserId(userId);
if(userInfo == null || BooleanUtils.isNotTrue(userInfo.getFastPay())){
log.warn("首充奖励领取失败 用户已领取 userId={}",userId);
if(userInfo == null || BooleanUtils.isNotFalse(userInfo.getFastPay())){
log.warn("首充奖励领取失败 用户已领取 85 userId={}",userId);
return;
}
boolean update = userInfoService.update(Wrappers.lambdaUpdate(UserInfo.class)
.eq(UserInfo::getId, userInfo.getUserId())
.eq(UserInfo::getId, userInfo.getId())
.eq(UserInfo::getFastPay, false)
.set(UserInfo::getFastPay, true));
if(!update){
log.warn("首充奖励领取失败 用户已领取 userId={}",userId);
log.warn("首充奖励领取失败 用户已领取 93 userId={}",userId);
return;
}
accountMapper.incsIncomeCoin(userId,price);