init
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user