修改天梯派遣星级条件

This commit is contained in:
luying
2020-11-09 13:48:36 +08:00
parent 04ecef03b5
commit 541e8a391d
4 changed files with 5 additions and 10 deletions
+2 -3
View File
@@ -23,7 +23,7 @@ export async function checkEventBattle(roleId: string, eventStatus: number, batt
if (!result) {
if(refTime) {
let preTime = getEventTime(new Date(refTime - 1));
console.log('preTime:', preTime);
// console.log('preTime:', preTime);
result = await EventRecordModel.setBattleCode(roleId, battleId, preTime, battleCode);
}
}
@@ -73,7 +73,6 @@ export function getEventTime(now: Date) {
} else if (curTime >= todayB) {
t = todayB;
}
console.log('getEventTime', curTime, todayA, todayB, yesterdayB, t);
return t
}
@@ -353,7 +352,7 @@ export function getEventSuccessStatus(type: number, status: number, question: Ar
} else if (type == EVENT_TYPE.QUIZ) {
isSuccess = true;
for(let { status = EVENT_ANSWER_STATUS.WAITING } of question) {
console.log(status);
// console.log(status);
if(status == EVENT_ANSWER_STATUS.WRONG) {
isSuccess = false;
} else if(status == EVENT_ANSWER_STATUS.WAITING) {