数值溢出和到账问题修复
This commit is contained in:
parent
9a11b8e5fc
commit
12a3ed0985
@ -107,7 +107,7 @@ public class RoomDailyTaskClaimExe {
|
|||||||
taskDatabaseService.saveClaimRecords(records);
|
taskDatabaseService.saveClaimRecords(records);
|
||||||
|
|
||||||
// 发放奖励
|
// 发放奖励
|
||||||
String bizNo = userId + ":" + taskCode + ":" + today + ":batch:" + maxTierClaimed + "-" + maxTierCompleted;
|
String bizNo = taskCode + ":" + today + ":batch:" + maxTierClaimed + "-" + maxTierCompleted;
|
||||||
walletGoldClient.changeBalance(GoldReceiptCmd.builder()
|
walletGoldClient.changeBalance(GoldReceiptCmd.builder()
|
||||||
.appIncome()
|
.appIncome()
|
||||||
.userId(userId)
|
.userId(userId)
|
||||||
|
|||||||
@ -73,6 +73,12 @@ public class RoomDailyTaskProgressUpdateExe {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 用最高档位 targetValue 截断,防止溢出
|
||||||
|
int maxProgress = tiers.get(tiers.size() - 1).getTargetValue();
|
||||||
|
if (progressValue > maxProgress) {
|
||||||
|
progressValue = maxProgress;
|
||||||
|
}
|
||||||
|
|
||||||
if (progressValue <= progress.getCurrentValue()) {
|
if (progressValue <= progress.getCurrentValue()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user