From 37e1b891d3eb960d6bc7bf00b6c15f4a2b7f4e40 Mon Sep 17 00:00:00 2001 From: chaos-zhu Date: Mon, 30 Dec 2024 21:56:52 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E7=A7=BB=E9=99=A4=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/app/utils/get-plus.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/server/app/utils/get-plus.js b/server/app/utils/get-plus.js index f850f74..8027978 100644 --- a/server/app/utils/get-plus.js +++ b/server/app/utils/get-plus.js @@ -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