修改天梯派遣星级条件
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user