fix: 聊天(已实现图文消息对话)
This commit is contained in:
@@ -107,7 +107,7 @@ export class WebSocketManager {
|
||||
handleMessage(data) {
|
||||
// 如果对象中有clientId则给websocket发送
|
||||
if (data.clientId) {
|
||||
const userId = '252'; // 实际项目中从存储获取
|
||||
const userId = uni.getStorageSync('user_id'); // 实际项目中从存储获取
|
||||
const bindMessage = {
|
||||
request_type: 'bind',
|
||||
user_type: 'user',
|
||||
|
||||
Reference in New Issue
Block a user