提交 572a756d 编写于 作者: H hxr

refactor: 日志打印优化

上级 e846a808
......@@ -92,7 +92,7 @@ public class WxMiniAppAuthenticationProvider implements AuthenticationProvider {
try {
sessionInfo = wxMaService.getUserService().getSessionInfo(code);
} catch (WxErrorException e) {
e.printStackTrace();
log.error("微信小程序登录失败", e);
throw new OAuth2AuthenticationException(e.getMessage());
}
String openid = sessionInfo.getOpenid();
......@@ -146,7 +146,6 @@ public class WxMiniAppAuthenticationProvider implements AuthenticationProvider {
throw new OAuth2AuthenticationException(error);
}
refreshToken = (OAuth2RefreshToken) generatedRefreshToken;
authorizationBuilder.refreshToken(refreshToken);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册