镇念塔:刷新任务防并发

This commit is contained in:
luying
2022-09-23 16:03:53 +08:00
parent 8d62021c12
commit d3683b5b4b
4 changed files with 19 additions and 18 deletions
+2 -3
View File
@@ -243,11 +243,10 @@ async function getTowerEntryData(role: RoleType) {
const { roleId } = role;
const status = await getTowerStatus(role);
const hungUp = await getHungupRewards(roleId);
const tasks = await getTasks(role);
if (!hungUp) {
return { status, hungUp: {}, tasks }
return { status, hungUp: {} }
} else {
return { status, hungUp: hungUp, tasks }
return { status, hungUp: hungUp }
}
}