Просмотр исходного кода

[微信第三方开放平台][修改]:授权成功

release_toaliyun_real
Stormeye Wu 7 лет назад
Родитель
Сommit
6da53b88a7
1 измененных файлов: 1 добавлений и 2 удалений
  1. +1
    -2
      mallinkWechatOpen/src/main/java/com/iformall/controller/WechatAuthController.java

+ 1
- 2
mallinkWechatOpen/src/main/java/com/iformall/controller/WechatAuthController.java Просмотреть файл

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


Загрузка…
Отмена
Сохранить