后台:修复维护问题
This commit is contained in:
@@ -444,8 +444,8 @@ async function setMaintenance(batchCode: string) {
|
||||
|
||||
let now = nowSeconds();
|
||||
// 发送消息
|
||||
if(maintenance.hasNotify && now < maintenance.startTime) {
|
||||
if(now > maintenance.startTime - 5 * 60) {
|
||||
if(maintenance.hasNotify && now < maintenance.startTime) { // 提前5分钟发通知
|
||||
if(now > maintenance.startTime - 5 * 60) {
|
||||
maintenanceNotifySchedule(batchCode);
|
||||
} else {
|
||||
if(scheduledJobs[`maintenNotify${batchCode}`]) scheduledJobs[`maintenNotify${batchCode}`].cancel();
|
||||
|
||||
Reference in New Issue
Block a user