🐛 移除任务

This commit is contained in:
chaos-zhu 2024-12-30 21:56:52 +08:00
parent 50ed2a8569
commit 37e1b891d3

View File

@ -1,4 +1,3 @@
const schedule = require('node-schedule')
const { getLocalNetIP } = require('./tools')
const { AESEncryptAsync } = require('./encrypt')
const version = require('../../package.json').version
@ -91,10 +90,4 @@ async function getLicenseInfo(key = '') {
}
}
const randomHour = Math.floor(Math.random() * 24)
const randomMinute = Math.floor(Math.random() * 60)
const randomDay = Math.floor(Math.random() * 7)
const cronExpression = `${ randomMinute } ${ randomHour } * * ${ randomDay }`
schedule.scheduleJob(cronExpression, getLicenseInfo)
module.exports = getLicenseInfo