Skip to content

Commit

Permalink
⚡ 优化性能
Browse files Browse the repository at this point in the history
  • Loading branch information
crossoverJie committed Jan 22, 2019
1 parent 4b1ed6b commit d30eeec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class RouteRequestImpl implements RouteRequest {
private String p2pRouteRequestUrl;

@Value("${cim.server.route.request.url}")
private String serverRouteRequestUrl;
private String serverRouteLoginUrl;

@Value("${cim.server.online.user.url}")
private String onlineUserUrl;
Expand Down Expand Up @@ -120,7 +120,7 @@ public CIMServerResVO.ServerInfo getCIMServer(LoginReqVO loginReqVO) throws Exce
RequestBody requestBody = RequestBody.create(mediaType,jsonObject.toString());

Request request = new Request.Builder()
.url(serverRouteRequestUrl)
.url(serverRouteLoginUrl)
.post(requestBody)
.build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ public void userOffLine(CIMUserInfo userInfo, NioSocketChannel channel) throws I
if (userInfo != null){
LOGGER.info("用户[{}]下线", userInfo.getUserName());
SessionSocketHolder.removeSession(userInfo.getUserId());
//清除路由关系
clearRouteInfo(userInfo);
}
SessionSocketHolder.remove(channel);

//清除路由关系
clearRouteInfo(userInfo);
}


Expand Down

0 comments on commit d30eeec

Please sign in to comment.