bug fix: 非重复任务没更新领取状态

This commit is contained in:
CounterFire2023 2024-04-09 14:46:57 +08:00
parent fcffa0260a
commit 13d9508c1e

View File

@ -37,6 +37,7 @@ export abstract class ITask {
if (user.boost > 1 && Date.now() < user.boostExpire.getTime()) {
score = Math.floor(score * user.boost)
}
cfg.repeat = cfg.repeat || 1
let finishAmount = cfg.repeat > 1 ? task.data?.finishAmount || 0 : 1
for (let i = claimAmount; i < Math.min(cfg.repeat, finishAmount); i++) {
await updateRankScore({