From 8fbe24ebe296f12de8224d3445c4c9798d19dfa0 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 10 Feb 2026 14:15:08 +0800
Subject: [PATCH] feat:修改默认
---
applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue | 13 +++++++++----
applications/drone-command/src/views/audioCall.vue | 6 +++---
uniapps/work-app/src/hooks/useGlobalWS.js | 2 +-
3 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/applications/drone-command/src/views/audioCall.vue b/applications/drone-command/src/views/audioCall.vue
index ff1cdd2..b1fcb28 100644
--- a/applications/drone-command/src/views/audioCall.vue
+++ b/applications/drone-command/src/views/audioCall.vue
@@ -36,10 +36,10 @@
import { ref, computed, onBeforeUnmount } from 'vue'
/** ✅ 你的 WS 地址前缀(后面拼 userId) */
-const WS_BASE = 'wss://域名/ws/chat?userId='
+const WS_BASE = 'wss://wrj.shuixiongit.com/ws/chat?userId='
-const uid = ref('2')
-const peerUid = ref('3')
+const uid = ref('7')
+const peerUid = ref('8')
const connected = ref(false)
const state = ref('idle') // idle | calling | ringing | in-call
diff --git a/applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue b/applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue
index d918e96..cf9c835 100644
--- a/applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue
+++ b/applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue
@@ -69,6 +69,9 @@
state.value = 'ringing';
log('📞 收到来电 call,来自', incomingFrom);
+ // 开始来电提示(铃声和震动)
+ playRingtone();
+ startVibration();
}
} catch (e) {
log('❌ 解析voiceparams参数失败:', String(e));
@@ -102,11 +105,11 @@
if (userId) {
return userId
}
- return '3' // 默认值
+ return '8' // 默认值
}
-const uid = ref('3')
-const peerUid = ref('2')
+const uid = ref('8')
+const peerUid = ref('7')
// 联系人名称
const contactName = ref('张三')
@@ -494,7 +497,9 @@
} catch {}
stopTimer()
-
+ // 停止来电提示
+ stopRingtone()
+ stopVibration()
if (pc) {
pc.getSenders().forEach(s => s.track && s.track.stop())
pc.close()
diff --git a/uniapps/work-app/src/hooks/useGlobalWS.js b/uniapps/work-app/src/hooks/useGlobalWS.js
index 43c797c..b8595a3 100644
--- a/uniapps/work-app/src/hooks/useGlobalWS.js
+++ b/uniapps/work-app/src/hooks/useGlobalWS.js
@@ -8,7 +8,7 @@
const callStatus = ref(null)
// 设置默认用户ID为3
- const defaultUserId = '3';
+ const defaultUserId = '8';
// WebSocket基础URL
const WS_BASE = 'wss://wrj.shuixiongit.com/ws/chat?userId=';
--
Gitblit v1.9.3