llj
2026-03-04 5b8b0ba6ebbc1d400f480db7f00b12208927ec40
utils/WebSocketServices.js
@@ -36,6 +36,7 @@
    createConnect(userId, userName, count = 0, limit = 3) {
        // 登录建立连接时,需要重新获取http地址,可能会变更
        this.wsUrl = CommonUtils.httpFormatWs();
        //this.wsUrl = uni.getStorageSync("serverUrl") + "WebSocketHandler.ashx"
        // 缓存用户信息(用于重连)
        this.currentUserId = userId;
        this.currentUserName = userName;