From ecbcc059d43f64877551756de129c653d31d0032 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期四, 07 五月 2026 09:20:20 +0800
Subject: [PATCH] 测试完成
---
src/components/CallButton/index.vue | 34 ++++++++++++++++++++++++++++++----
1 files changed, 30 insertions(+), 4 deletions(-)
diff --git a/src/components/CallButton/index.vue b/src/components/CallButton/index.vue
index c2bd148..d44aee1 100644
--- a/src/components/CallButton/index.vue
+++ b/src/components/CallButton/index.vue
@@ -51,13 +51,16 @@
isRegistering: true, // 鍒濆涓烘敞鍐屼腑鐘舵��
randomNum: randomNum,
randomID: null,
+ orgname: localStorage.getItem("orgname"),
callStatus: "idle", // idle, calling, connected, ended
sipStatus: "鏈繛鎺�",
sipStatusClass: "status-disconnected",
sipConfig: {
- wsUrl: "wss://192.168.10.124:7443",
+ // 绉婚櫎纭紪鐮佺殑wsUrl鍜宒omain
+ wsUrl: "",
sipUri: "",
- password: "Smartor@2023",
+ password: "Smartor@2023", //涓芥按
+ // password: "heskj@1234",//甯備竴
displayName: "Web 灏忛緳",
// realm: "9.208.5.18:8090",
},
@@ -96,10 +99,23 @@
},
},
created() {
+ if (
+ this.orgname == "绗竴浜烘皯鍖婚櫌婀栨花闄㈠尯" ||
+ this.orgname == "绗竴浜烘皯鍖婚櫌鍚村北闄㈠尯"
+ ) {
+ this.sipConfig.password = "heskj@1234";
+ } else {
+ this.sipConfig.password = "Smartor@2023";
+ }
+
// CallgetList();
},
async mounted() {
+ const orgName = localStorage.getItem("orgname");
+ if (orgName == "鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�") {
+ return;
+ }
await this.CallgetList();
this.isRegistering = true; // 寮�濮嬫敞鍐�
sipService.init(this.sipConfig);
@@ -188,8 +204,18 @@
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.129.198`;
+ }
} catch (error) {
console.error("鑾峰彇鍒嗘満鍙峰け璐�:", error);
// this.updateStatus("failed", "鑾峰彇鍒嗘満鍙峰け璐�");
--
Gitblit v1.9.3