zoujiajian 3 年之前
父節點
當前提交
4337b9f8d8
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      netflix-web/src/main/java/com/cyksj/web/controller/user/AuthorizationController.java

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

@@ -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));