|
|
|
@@ -62,7 +62,7 @@ public class WechatAuthController { |
|
|
|
@ApiOperation(value = "授权", notes = "") |
|
|
|
@GetMapping("/jump") |
|
|
|
@ResponseBody |
|
|
|
public WxOpenQueryAuthResult jump(@RequestParam("auth_code") String authorizationCode) { |
|
|
|
public String jump(@RequestParam("auth_code") String authorizationCode) { |
|
|
|
try { |
|
|
|
WxOpenQueryAuthResult queryAuthResult = openService.getWxOpenComponentService().getQueryAuth(authorizationCode); |
|
|
|
logger.info("getQueryAuth", queryAuthResult); |
|
|
|
@@ -79,7 +79,7 @@ public class WechatAuthController { |
|
|
|
setAuthTime(new Date()); |
|
|
|
} |
|
|
|
}); |
|
|
|
return queryAuthResult; |
|
|
|
return "授权成功"; |
|
|
|
} catch (WxErrorException e) { |
|
|
|
logger.error("gotoPreAuthUrl", e); |
|
|
|
throw new RuntimeException(e); |
|
|
|
|