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

[微信第三方开放平台][修改]:移动授权url

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

+ 14
- 0
mallinkAdmin/src/main/java/com/iformall/controller/WechatAuthController.java Просмотреть файл

@@ -87,4 +87,18 @@ public class WechatAuthController {
throw new RuntimeException(e);
}
}

@GetMapping("/getMobilePreAuthUrl")
@ResponseBody
public String getMobilePreAuthUrl(HttpServletRequest request, HttpServletResponse response) {
String host = request.getHeader("host");
String url = "https://" + host + "/api/wt_auth/jump";
try {
url = openService.getWxOpenComponentService().getMobilePreAuthUrl(url);
return url;
} catch (WxErrorException e) {
logger.error("getMobilePreAuthUrl", e);
throw new RuntimeException(e);
}
}
}

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