任务:修复成就箱子领取bug
This commit is contained in:
@@ -194,7 +194,7 @@ export class ShopHandler {
|
|||||||
|
|
||||||
} else if (type == TASK_FUN_TYPE.ACHIEVEMENT) {
|
} else if (type == TASK_FUN_TYPE.ACHIEVEMENT) {
|
||||||
let { achievementPoint, achievementBox } = userTask;
|
let { achievementPoint, achievementBox } = userTask;
|
||||||
if (achievementPoint > dicTaskBox.point) return resResult(STATUS.TASK_ACTIVE_NOT_ENOUGH);
|
if (achievementPoint < dicTaskBox.point) return resResult(STATUS.TASK_ACTIVE_NOT_ENOUGH);
|
||||||
if (achievementBox.includes(id)) return resResult(STATUS.TASK_BOX_HAS_RECEIVED);
|
if (achievementBox.includes(id)) return resResult(STATUS.TASK_BOX_HAS_RECEIVED);
|
||||||
|
|
||||||
userTask = await UserTaskModel.pushAchievementBox(roleId, id);
|
userTask = await UserTaskModel.pushAchievementBox(roleId, id);
|
||||||
|
|||||||
Reference in New Issue
Block a user