Pārlūkot izejas kodu

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

release_toaliyun_real
Stormeye Wu pirms 7 gadiem
vecāks
revīzija
278a77cb86
1 mainītis faili ar 14 papildinājumiem un 0 dzēšanām
  1. +14
    -0
      mallinkAdmin/src/main/java/com/iformall/controller/WechatAuthController.java

+ 14
- 0
mallinkAdmin/src/main/java/com/iformall/controller/WechatAuthController.java Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt