From f79a63b0ef46ab026e266779e6efafa932f832e6 Mon Sep 17 00:00:00 2001
From: qq_41295110 <qq_41295110@noreply.gitcode.com>
Date: 星期四, 26 二月 2026 15:43:28 +0800
Subject: [PATCH] Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev

---
 utils/common.js |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/utils/common.js b/utils/common.js
index 6905022..cc66952 100644
--- a/utils/common.js
+++ b/utils/common.js
@@ -498,10 +498,16 @@
     httpFormatWs(httpUrl=this.serverUrl) {
         if(httpUrl.indexOf("http://") === 0){
             httpUrl = httpUrl.replace("http://", "")
-            httpUrl = "ws://" + httpUrl.split(":")[0]+":8089/ws"
+            httpUrl = httpUrl.substring(0, httpUrl.length - 1)
+            let BackSlashLast = httpUrl.lastIndexOf('/')
+            httpUrl = httpUrl.substring(0, BackSlashLast)
+            httpUrl = "ws://" + httpUrl.split(":")[0]+":8888/ws"
         }else if(httpUrl.indexOf("https://") === 0) {
             httpUrl = httpUrl.replace("https://", "")
-            httpUrl = "wss://" + httpUrl.split(":")[0]+":8089/ws"
+            httpUrl = httpUrl.substring(0, httpUrl.length - 1)
+            let BackSlashLast = httpUrl.lastIndexOf('/')
+            httpUrl = httpUrl.substring(0, BackSlashLast)
+            httpUrl = "wss://" + httpUrl.split(":")[0]+":8888/ws"
         }else{
             // 鎻愮ず浼犲叆杩炴帴閿欒
         }

--
Gitblit v1.9.1