From 4587b07918b19e9724439d773b0ba28f388057df Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 15 五月 2023 21:05:40 +0800
Subject: [PATCH] Merge branch 'develop'

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

diff --git a/src/index.js b/src/index.js
index b4541b2..090fd3e 100644
--- a/src/index.js
+++ b/src/index.js
@@ -147,6 +147,10 @@
         } else if (!/webapi\/dostars$/ig.test(systemApi)) {
           systemApi = systemApi.replace(/\/?$/, '/webapi/dostars')
         }
+
+        if (/^https/.test(window.location.protocol) && /^http:/.test(systemApi) && !GLOB.transfer) {
+          systemApi = systemApi.replace(/^http:/, 'https:')
+        }
       
         GLOB.mainSystemApi = systemApi
       }

--
Gitblit v1.8.0