zx 3 semanas atrás
pai
commit
6da0c3d8e3

+ 4 - 2
src/components/user/login.vue

@@ -107,8 +107,10 @@
             token: this.userToken,
             logLevel:6,
             platformID: 5, // 使用配置的平台ID
-            apiAddr: 'https://web.im.cdwjyyh.com/api', // API地址
-            wsAddr: 'wss://web.im.cdwjyyh.com/msg_gateway', // WebSocket地址
+            apiAddr: 'https://web.im.ysya.top/api', // API地址
+            wsAddr: 'wss://web.im.ysya.top/msg_gateway', // WebSocket地址
+            // apiAddr: 'https://web.im.cdwjyyh.com/api', // API地址
+            // wsAddr: 'wss://web.im.cdwjyyh.com/msg_gateway', // WebSocket地址
             dataDir: '/imdata' // 添加数据存储目录
           }
           console.log("config",config)

+ 2 - 2
src/store/modules/user.js

@@ -49,7 +49,7 @@ const user = {
           // 设置请求头
           axios.defaults.headers.common['APPToken'] = res.token;
           commit('SET_DOCTOR',res.doctor)
-          commit('setUserId', "SCRMD"+res.doctor.doctorId)
+          commit('setUserId', "D"+res.doctor.doctorId)
           resolve(res)
         }).catch(error => {
           reject(error)
@@ -69,7 +69,7 @@ const user = {
           commit('SET_NAME', doctor.doctorName)
           commit('SET_AVATAR', avatar)
           commit('SET_DOCTOR', res.doctor)
-          commit('setUserId', "scrmD"+res.doctor.doctorId)
+          commit('setUserId', "D"+res.doctor.doctorId)
           resolve(res)
         }).catch(error => {
           reject(error)

+ 2 - 1
src/utils/im.js

@@ -6,9 +6,10 @@ const config = {
   SECRET: 'openIM123',
 
   // 服务器地址配置
+  // API_ADDRESS: 'https://web.im.ysya.top/api', // OpenIM API地址
+  // WS_ADDRESS: 'wss://web.im.ysya.top/msg_gateway', // WebSocket地址
   API_ADDRESS: 'https://web.im.cdwjyyh.com/api', // OpenIM API地址
   WS_ADDRESS: 'wss://web.im.cdwjyyh.com/msg_gateway', // WebSocket地址
-
   // 平台配置
   PLATFORM_ID: 5, // 平台ID (5=Web)
 

+ 4 - 2
src/views/im/index.vue

@@ -108,8 +108,10 @@ export default {
           token: this.userToken,
           logLevel:6,
           platformID: 5, // 使用配置的平台ID
-          apiAddr: 'https://web.im.cdwjyyh.com/api', // API地址
-          wsAddr: 'wss://web.im.cdwjyyh.com/msg_gateway', // WebSocket地址
+          apiAddr: 'https://web.im.ysya.top/api', // API地址
+          wsAddr: 'wss://web.im.ysya.top/msg_gateway', // WebSocket地址
+          // apiAddr: 'https://web.im.cdwjyyh.com/api', // API地址
+          // wsAddr: 'wss://web.im.cdwjyyh.com/msg_gateway', // WebSocket地址
           dataDir: '/imdata' // 添加数据存储目录
         }