Ver código fonte

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

release_toaliyun_real
Stormeye Wu 7 anos atrás
pai
commit
278a77cb86
1 arquivos alterados com 14 adições e 0 exclusões
  1. +14
    -0
      mallinkAdmin/src/main/java/com/iformall/controller/WechatAuthController.java

+ 14
- 0
mallinkAdmin/src/main/java/com/iformall/controller/WechatAuthController.java Ver arquivo

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

Carregando…
Cancelar
Salvar