任务:修复领取宝箱bug
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user