🐛 移除任务
This commit is contained in:
parent
50ed2a8569
commit
37e1b891d3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user