From 1072f0d4d3390d4b4923f3c7e407731817660780 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 27 四月 2022 23:20:25 +0800
Subject: [PATCH] 2022-04-27

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

diff --git a/src/index.js b/src/index.js
index 7383548..179ce60 100644
--- a/src/index.js
+++ b/src/index.js
@@ -99,9 +99,9 @@
       GLOB.probation = true
       GLOB.systemType = ''
 
-      // GLOB.mainSystemApi = 'https://cloud.positecgroup.com/webapi/dostars'
+      GLOB.mainSystemApi = 'https://cloud.positecgroup.com/webapi/dostars'
 
-      GLOB.mainSystemApi = 'http://sso.mk9h.cn/cloud/webapi/dostars'
+      // GLOB.mainSystemApi = 'http://sso.mk9h.cn/cloud/webapi/dostars'
 
       if (GLOB.watermark) {
         GLOB.dataFormat = true
@@ -176,7 +176,7 @@
       }
     }
 
-    if (/^https/.test(window.location.protocol)) { // https杞崲
+    if (/^https/.test(window.location.protocol) || (process.env.NODE_ENV !== 'production' && /^https/.test(config.host))) { // https杞崲
       let meta = document.createElement('meta')
       meta.content = 'upgrade-insecure-requests'
       meta.httpEquiv = 'Content-Security-Policy'

--
Gitblit v1.8.0