|
|
@@ -86,7 +86,7 @@ public class AuthorizationController {
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/weChat")
|
|
|
- public void base(String url,Long shared, String authType, HttpServletResponse response) throws Exception {
|
|
|
+ public void base(String url,Long sharedId, String authType, HttpServletResponse response) throws Exception {
|
|
|
|
|
|
log.info("微信授权转跳. url: {},authType:{}",url,authType);
|
|
|
|
|
|
@@ -96,7 +96,7 @@ public class AuthorizationController {
|
|
|
|
|
|
Long mappingId = SEQUENCE.nextId();
|
|
|
redisService.set(mappingId.toString(),url,60*60*24L);
|
|
|
- AuthRedirect redirect = new AuthRedirect().setMappingId(mappingId).setSharedId(shared);
|
|
|
+ AuthRedirect redirect = new AuthRedirect().setMappingId(mappingId).setSharedId(sharedId);
|
|
|
String state = Codec.DoBase64.custom().setData(Jsons.toJson(redirect)).encodeAsText();
|
|
|
|
|
|
response.sendRedirect(authorizationService.createUrl(state,authType));
|