Skip to content

Commit

Permalink
opt
Browse files Browse the repository at this point in the history
  • Loading branch information
ggbocoder committed Feb 4, 2024
1 parent 744c395 commit 2e0b742
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ private void onRegRmMessage(ChannelHandlerContext ctx, RpcMessage rpcMessage) {
}
}
RegisterRMResponse response = new RegisterRMResponse(isSuccess);
response.setResultCode(resultCode);
if (checkAuthHandler.refreshAuthToken(message) != null) {
response.setExtraData(checkAuthHandler.refreshAuthToken(message));
String newToken = checkAuthHandler.refreshAuthToken(message);
if (StringUtils.isNotBlank(newToken)) {
response.setExtraData(newToken);
}
if (StringUtils.isNotEmpty(errorInfo)) {
response.setMsg(errorInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ private void onRegTmMessage(ChannelHandlerContext ctx, RpcMessage rpcMessage) {
}
}
RegisterTMResponse response = new RegisterTMResponse(isSuccess);
if (checkAuthHandler.refreshAuthToken(message) != null) {
response.setExtraData(checkAuthHandler.refreshAuthToken(message));
String newToken = checkAuthHandler.refreshAuthToken(message);
if (StringUtils.isNotBlank(newToken)) {
response.setExtraData(newToken);
}
if (StringUtils.isNotEmpty(errorInfo)) {
response.setMsg(errorInfo);
Expand Down

0 comments on commit 2e0b742

Please sign in to comment.