From 3cf3cd88a7b7a49e3300e8e8c1e9034eb69a3429 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Fri, 27 Feb 2026 08:40:42 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 uniapps/work-app/src/utils/websocket.js |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/uniapps/work-app/src/utils/websocket.js b/uniapps/work-app/src/utils/websocket.js
index c9a5a2a..78ece56 100644
--- a/uniapps/work-app/src/utils/websocket.js
+++ b/uniapps/work-app/src/utils/websocket.js
@@ -114,8 +114,8 @@
     this.socketTask.send({
       data: JSON.stringify(message),
       success: () => {
-        // console.log('WebSocket消息发送成功:', message)
-        useGlobalWS();
+        console.log('WebSocket消息发送成功:', message)
+        // useGlobalWS();
       },
       fail: (error) => {
         // console.error('WebSocket消息发送失败:', error)
@@ -124,15 +124,15 @@
   }
 
   // 开始心跳检测
-  startPing() {
-    this.stopPing()
-    // 每25秒发送一次心跳
-    this.pingTimer = setInterval(() => {
-      if (this.connected) {
-        this.send('ping', 'system')
-      }
-    }, 25000)
-  }
+  // startPing() {
+  //   this.stopPing()
+  //   // 每25秒发送一次心跳
+  //   this.pingTimer = setInterval(() => {
+  //     if (this.connected) {
+  //       this.send('ping', 'system')
+  //     }
+  //   }, 25000)
+  // }
 
   // 停止心跳检测
   stopPing() {

--
Gitblit v1.9.3