bug fix: 非重复任务没更新领取状态
This commit is contained in:
parent
fcffa0260a
commit
13d9508c1e
@ -37,6 +37,7 @@ export abstract class ITask {
|
|||||||
if (user.boost > 1 && Date.now() < user.boostExpire.getTime()) {
|
if (user.boost > 1 && Date.now() < user.boostExpire.getTime()) {
|
||||||
score = Math.floor(score * user.boost)
|
score = Math.floor(score * user.boost)
|
||||||
}
|
}
|
||||||
|
cfg.repeat = cfg.repeat || 1
|
||||||
let finishAmount = cfg.repeat > 1 ? task.data?.finishAmount || 0 : 1
|
let finishAmount = cfg.repeat > 1 ? task.data?.finishAmount || 0 : 1
|
||||||
for (let i = claimAmount; i < Math.min(cfg.repeat, finishAmount); i++) {
|
for (let i = claimAmount; i < Math.min(cfg.repeat, finishAmount); i++) {
|
||||||
await updateRankScore({
|
await updateRankScore({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user