doocs/qcloud-im-server-sdk-java

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

vioao opened this issue · 2 comments

vioao 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