From 2a03640349b948f656451a84f205a0972abd8b95 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 27 三月 2024 17:06:03 +0800
Subject: [PATCH] 2024-03-27

---
 src/index.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/index.js b/src/index.js
index f80e527..deb6444 100644
--- a/src/index.js
+++ b/src/index.js
@@ -75,6 +75,10 @@
       GLOB.externalDatabase = null
     }
 
+    if (config.probation && /^20\d{2}-\d{2}-\d{2}$/.test(config.probation) && new Date(config.probation).getTime() > new Date().getTime()) {
+      GLOB.probation = true
+    }
+
     // 鍙湁涓氬姟绯荤粺鎵嶅彲浠ヨ缃负姝e紡绯荤粺
     if (GLOB.sysType === 'local' && (config.systemType === 'official' || config.systemType === 'production')) {
       if (!config.mainSystemApi) {
@@ -89,9 +93,6 @@
       }
 
       GLOB.systemType = 'production'
-      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
       }

--
Gitblit v1.8.0