修复扩展服activity扩展bug
This commit is contained in:
@@ -446,8 +446,8 @@ async function setMaintenance(batchCode: string) {
|
||||
if(now > maintenance.startTime - 5 * 60) {
|
||||
maintenanceNotifySchedule(batchCode);
|
||||
} else {
|
||||
if(scheduledJobs[`maintenNotify${batchCode}`]) scheduledJobs[`maintenNotify${batchCode}`].cancel();
|
||||
scheduleJob(`maintenNotify${batchCode}`, (maintenance.startTime - 5 * 60) * 1000, () => {
|
||||
console.log('******* 通知')
|
||||
maintenanceNotifySchedule(batchCode);
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user