From 68ef99115e884313b3627d096e0cc6ce2b4f36e5 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Thu, 26 Feb 2026 17:26:53 +0800
Subject: [PATCH] Merge branch 'master' of http://139.196.74.78:10010/r/jagzwxm/ja_web

---
 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