mobile/pages/plus/business/chat/chat.vue
@@ -238,6 +238,7 @@ }else{ // 加载消息 this.loadMessages(); this.initWebSocket(); } }, @@ -374,7 +375,7 @@ const currentUserId = this.currentUser.user_id; // 构建WebSocket连接URL - 使用名片聊天专用端口2349 const wsUrl = `${this.wsUrl}:2349?user_id=${currentUserId}`; const wsUrl = `${this.wsUrl}:2349?user_id=${currentUserId}&usertype=supplier `; try { // 创建WebSocket连接 this.socketTask = uni.connectSocket({