fix 奇遇挑战没有成功的直接算失败

This commit is contained in:
luying
2020-12-30 19:50:01 +08:00
parent 9be514e936
commit 69c75da6fc

View File

@@ -313,7 +313,7 @@ export function checkEventStatus(type: number, status: number) {
} else if (status == EVENT_RECORD_STATUS.BATTLE_FAIL) {
flag = true;
} else {
flag = false;
flag = true;
}
} else {
if(status == EVENT_RECORD_STATUS.WAITING) {
@@ -337,7 +337,7 @@ export function getEventSuccessStatus(type: number, status: number, question: Ar
if(type == EVENT_TYPE.BATTLE) {
if(status == EVENT_RECORD_STATUS.BATTLE_SUCCESS) {
isSuccess = true;
} else if (status == EVENT_RECORD_STATUS.BATTLE_FAIL) {
} else {
isSuccess = false;
}
} else if(type == EVENT_TYPE.BOX) {