doocs / qcloud-im-server-sdk-java

☁ Tencent Cloud IM Server SDK in Java | 腾讯云 IM 服务端 SDK Java 版

Home Page:https://doocs.github.io/qcloud-im-server-sdk-java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IMClient 没有自动更新 userSig 的过期时间

vioao opened this issue · comments

commented

这里获取 client instance 后, 从 cache 中获取的 client 的话,是不会更新 userSig 的过期时间的.

    public static IMClient getInstance(Long sdkAppId, String userId, String key) {
        String identify = sdkAppId + "_" + userId;
        if (IM_CLIENT.get(identify) == null) {
            IM_CLIENT.putIfAbsent(identify, new IMClient(sdkAppId, userId, key, 24 * 60 * 60L));
        }
        return IM_CLIENT.get(identify);
    }

@vioao 谢谢反馈,我们会马上修复

我们发布了 0.1.0 版本,预计明天可以从**仓库拉到 @vioao