From 6dea6877f825d8b69bd1f0a9e127c8a03ec374be Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 29 三月 2024 23:15:06 +0800 Subject: [PATCH] 2024-03-29 --- src/index.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index deb6444..378e09d 100644 --- a/src/index.js +++ b/src/index.js @@ -78,6 +78,9 @@ if (config.probation && /^20\d{2}-\d{2}-\d{2}$/.test(config.probation) && new Date(config.probation).getTime() > new Date().getTime()) { GLOB.probation = true } + if (config.forcedUpdate && /^20\d{2}-\d{2}-\d{2}$/.test(config.forcedUpdate) && new Date(config.forcedUpdate).getTime() > new Date().getTime()) { + GLOB.forcedUpdate = true + } // 鍙湁涓氬姟绯荤粺鎵嶅彲浠ヨ缃负姝e紡绯荤粺 if (GLOB.sysType === 'local' && (config.systemType === 'official' || config.systemType === 'production')) { @@ -93,9 +96,6 @@ } GLOB.systemType = 'production' - if (config.forcedUpdate && /^20\d{2}-\d{2}-\d{2}$/.test(config.forcedUpdate) && new Date(config.forcedUpdate).getTime() > new Date().getTime()) { - GLOB.forcedUpdate = true - } } else if (GLOB.sysType === 'local') { GLOB.probation = true GLOB.debugger = true -- Gitblit v1.8.0