From eb0c4703ec7cd21dc921ae113b7e3be69c641c1d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 17 九月 2021 15:18:06 +0800 Subject: [PATCH] 2021-09-17 --- src/index.js | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/index.js b/src/index.js index d6c0ef7..49328bb 100644 --- a/src/index.js +++ b/src/index.js @@ -71,6 +71,7 @@ GLOB.appId = config.appId || '' GLOB.lineColor = config.lineColor || '' GLOB.licenseKey = config.licenseKey || '' + GLOB.probation = false if (config.externalDatabase !== false && config.externalDatabase !== 'false' && config.externalDatabase !== undefined) { GLOB.externalDatabase = config.externalDatabase ? `[${config.externalDatabase}]..` : '' @@ -81,6 +82,9 @@ // 鍙湁涓氬姟绯荤粺鎵嶅彲浠ヨ缃负姝e紡绯荤粺 if (options.sysType === 'local' && (config.systemType === 'official' || config.systemType === 'production')) { 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 + } } else { GLOB.systemType = '' } -- Gitblit v1.8.0