From 3d41233538c06622686fec3e613f61411f320b2b Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期一, 19 一月 2026 13:57:58 +0800
Subject: [PATCH] 测试完成
---
src/components/CallButton/index.vue | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/src/components/CallButton/index.vue b/src/components/CallButton/index.vue
index 4a08029..594842b 100644
--- a/src/components/CallButton/index.vue
+++ b/src/components/CallButton/index.vue
@@ -55,7 +55,8 @@
sipStatus: "鏈繛鎺�",
sipStatusClass: "status-disconnected",
sipConfig: {
- wsUrl: "wss://192.168.10.124:7443",
+ // 绉婚櫎纭紪鐮佺殑wsUrl鍜宒omain
+ wsUrl: "",
sipUri: "",
password: "Smartor@2023",
displayName: "Web 灏忛緳",
@@ -100,8 +101,9 @@
},
async mounted() {
- if (localStorage.getItem("orgname")=='鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�') {
- return
+ const orgName = localStorage.getItem("orgname");
+ if (orgName == "鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�") {
+ return;
}
await this.CallgetList();
this.isRegistering = true; // 寮�濮嬫敞鍐�
@@ -191,8 +193,15 @@
const res = await CallgetList();
this.randomNum = res.data[0].tel;
this.randomID = res.data[0].id;
- // 姝g‘璁剧疆 sipUri
- this.sipConfig.sipUri = `${this.randomNum}@192.168.10.124`;
+ // 鍔ㄦ�佽缃畇ipUri锛屽煙鍚嶉儴鍒嗕細鍦╯ipService涓姩鎬佸鐞�
+ const orgName = localStorage.getItem("orgname");
+ if (orgName == "涓芥按甯備腑鍖婚櫌") {
+ this.sipConfig.sipUri = `${this.randomNum}@192.168.10.124`;
+ } else if (orgName == "榫欐硥甯備汉姘戝尰闄�") {
+ this.sipConfig.sipUri = `${this.randomNum}@10.10.0.220`;
+ } else if (orgName == "鏉窞甯傜涓�浜烘皯鍖婚櫌婀栨花闄㈠尯"||orgName == "鏉窞甯傜涓�浜烘皯鍖婚櫌鍚村北闄㈠尯") {
+ this.sipConfig.sipUri = `${this.randomNum}@192.169.5.248`;
+ }
} catch (error) {
console.error("鑾峰彇鍒嗘満鍙峰け璐�:", error);
// this.updateStatus("failed", "鑾峰彇鍒嗘満鍙峰け璐�");
--
Gitblit v1.9.3