zoujiajian пре 3 година
родитељ
комит
4337b9f8d8

+ 2 - 2
netflix-web/src/main/java/com/cyksj/web/controller/user/AuthorizationController.java

@@ -86,7 +86,7 @@ public class AuthorizationController {
 
 
 
 
     @GetMapping(value = "/weChat")
     @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);
         log.info("微信授权转跳. url: {},authType:{}",url,authType);
 
 
@@ -96,7 +96,7 @@ public class AuthorizationController {
 
 
         Long mappingId = SEQUENCE.nextId();
         Long mappingId = SEQUENCE.nextId();
         redisService.set(mappingId.toString(),url,60*60*24L);
         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();
         String state = Codec.DoBase64.custom().setData(Jsons.toJson(redirect)).encodeAsText();
 
 
         response.sendRedirect(authorizationService.createUrl(state,authType));
         response.sendRedirect(authorizationService.createUrl(state,authType));