From 55cbccfdfd8cecce96a7e9e748ca45421e3b86b2 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 10 二月 2022 18:50:07 +0800
Subject: [PATCH] 2022-02-10

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

diff --git a/src/index.js b/src/index.js
index 02692e1..93ec3e1 100644
--- a/src/index.js
+++ b/src/index.js
@@ -77,6 +77,7 @@
     GLOB.lineColor = config.lineColor || ''
     GLOB.licenseKey = config.licenseKey || ''
     GLOB.probation = false
+    GLOB.watermark = config.watermark !== false
 
     if (config.externalDatabase !== false && config.externalDatabase !== 'false' && config.externalDatabase !== undefined) {
       GLOB.externalDatabase = config.externalDatabase ? `[${config.externalDatabase}]..` : ''
@@ -126,7 +127,7 @@
           systemApi = systemApi.replace(/\/?$/, '/webapi/dostars')
         }
 
-        if (systemApi.indexOf('sso.mk9h.cn') > -1 && process.env.NODE_ENV === 'production') {
+        if (systemApi.indexOf('sso.mk9h.cn') > -1 && GLOB.watermark) {
           GLOB.dataFormat = true
         }
       

--
Gitblit v1.8.0