Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

代码错误 #4

Open
songjuzhi2 opened this issue Sep 9, 2022 · 1 comment
Open

代码错误 #4

songjuzhi2 opened this issue Sep 9, 2022 · 1 comment

Comments

@songjuzhi2
Copy link

@OverRide
public void remove(String key, String sessionId) {
String[] name = key.split("/");
if (name.length != 3) {
log.debug("The key is out of format. [{workspaceId}/{userType}/{userId}]");
return;
}
redisOps.hashDel(RedisConst.WEBSOCKET_PREFIX + name[0], new String[] {sessionId});
redisOps.hashDel(RedisConst.WEBSOCKET_PREFIX + UserTypeEnum.find(Integer.parseInt(name[1])), new String[] {sessionId});
SESSIONS.remove(sessionId);
}

上面加粗部分 UserTypeEnum.find(Integer.parseInt(name[1]))改为UserTypeEnum.find(Integer.parseInt(name[1])).getDesc()

@dji-dev
Copy link

dji-dev commented Sep 13, 2022

Agent comment from sean in Zendesk ticket #70440:

感谢反馈,我们后续会让相关同事进行修改。

°°°

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants