任务:修复领取宝箱bug

This commit is contained in:
luying
2021-04-23 13:46:16 +08:00
parent 7a9972b2b5
commit d08d1c8b4d

View File

@@ -148,7 +148,7 @@ export class ShopHandler {
dailyTaskPointWeekly = 0;
dailyTaskBox = [];
}
if(dailyTaskPointWeekly > dicTaskBox.point) return resResult(STATUS.TASK_ACTIVE_NOT_ENOUGH);
if(dailyTaskPointWeekly < dicTaskBox.point) return resResult(STATUS.TASK_ACTIVE_NOT_ENOUGH);
if(dailyTaskBox.includes(id)) return resResult(STATUS.TASK_BOX_HAS_RECEIVED);
userTask = await UserTaskModel.pushDailyBox(roleId, id, curWeek, shouldRefresh);