From a313d2b6c11b75234d7ad7e9d0963ca17ada5930 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期四, 16 一月 2025 18:07:58 +0800
Subject: [PATCH] Merge branch 'test' of http://47.103.154.90:83/r/WI/Web.V1.0 into test

---
 src/stores/global.ts |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/stores/global.ts b/src/stores/global.ts
index eeba2d3..136f6c1 100644
--- a/src/stores/global.ts
+++ b/src/stores/global.ts
@@ -1,4 +1,4 @@
-import { MAIN_URL } from '../constants';
+import { SSE_URL } from '../constants';
 import { accessSessionKey } from '../utils/request';
 import { SSEClient } from '../utils/sse/SSEClient';
 import { Local } from '../utils/storage';
@@ -9,10 +9,12 @@
  */
 const connectMsgSyncService = () => {
 	if (!Local.get(accessSessionKey)) return;
+	if (!SSE_URL) return;
 	// 鍒涘缓瀹炰緥
 	const sseClient = new SSEClient(
-		`${MAIN_URL}chat/connect_broadcast_chat`,
+		// `https://widev.cpolar.top/sse/chat/connect_broadcast_chat`,
 		// `${MAIN_URL}events`
+		SSE_URL
 	);
 	sseClient.connect({
 		websessionid: Local.get(accessSessionKey),
@@ -20,6 +22,5 @@
 	return sseClient;
 };
 
-// export const sseClient = connectMsgSyncService();
-export const sseClient = null;
+export const sseClient = connectMsgSyncService();
 

--
Gitblit v1.9.3