Commit 1eba6568 authored by fangxinjiang's avatar fangxinjiang

代码优化-fxj

parent 7b3c017a
......@@ -64,8 +64,9 @@ public class WxConfig {
static{
//合同审批(生产)
corpsecretMap.put("1000009","R0nKkvsY-oF41fuQvUXZ-kFG3_g_Ce0bpZt6mByx524");
}
corpsecretMap.put("1000010","16kqEL_eU-ARwYyqLgEBWHgxm8gXVnkzv_eJMLy9NpU");
corpsecretMap.put("1000009","R0nKkvsY-oF41fuQvUXZ-kFG3_g_Ce0bpZt6mByx524");
}
/**
* @param
......
......@@ -60,7 +60,7 @@ public class WxLoginAuthenticationFilter extends AbstractAuthenticationProcessin
}
AbstractAuthenticationToken authRequest;
String code = obtainParameter(request, "code");
if (!Common.isEmpty(code)) {
if (Common.isEmpty(code)) {
throw new AuthenticationServiceException("未获取到授权码:"+code);
}
// String result = restTemplate.getForObject(String.format(SecurityConstants.WX_GET_ACCOSS_TOKEN, wxConfig.getCorpid(), wxConfig.getCorpsecret()), String.class);
......
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