Commit e3566c79 authored by fangxinjiang's avatar fangxinjiang

鉴权-fxj

parent df924c09
...@@ -60,10 +60,9 @@ public class WxLoginAuthenticationFilter extends AbstractAuthenticationProcessin ...@@ -60,10 +60,9 @@ public class WxLoginAuthenticationFilter extends AbstractAuthenticationProcessin
} }
AbstractAuthenticationToken authRequest; AbstractAuthenticationToken authRequest;
String code = obtainParameter(request, "code"); String code = obtainParameter(request, "code");
if (Common.isEmpty(code)) { if (!Common.isEmpty(code)) {
throw new AuthenticationServiceException("未获取到授权码"); throw new AuthenticationServiceException("未获取到授权码:"+code);
} }
// String result = restTemplate.getForObject(String.format(SecurityConstants.WX_GET_ACCOSS_TOKEN, wxConfig.getCorpid(), wxConfig.getCorpsecret()), String.class); // String result = restTemplate.getForObject(String.format(SecurityConstants.WX_GET_ACCOSS_TOKEN, wxConfig.getCorpid(), wxConfig.getCorpsecret()), String.class);
// if (Common.isEmpty(result)) { // if (Common.isEmpty(result)) {
// throw new AuthenticationServiceException("微信授权失败"); // throw new AuthenticationServiceException("微信授权失败");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment