|
@@ -26,7 +26,7 @@ public class WeChatRedirectController {
|
|
|
|
|
|
@PassToken
|
|
|
@GetMapping("/page")
|
|
|
- public void redirectRequest(@RequestParam("code") String code, HttpServletResponse response){
|
|
|
+ public void redirectRequest(@RequestParam("code") String code, HttpServletResponse response) {
|
|
|
try {
|
|
|
response.sendRedirect("https://staticweb.hnthyy.cn/wxService/" + code);
|
|
|
} catch (IOException e) {
|
|
@@ -38,11 +38,25 @@ public class WeChatRedirectController {
|
|
|
@GetMapping("/page2")
|
|
|
public void redirectRequest2(@RequestParam("to") String to,
|
|
|
@RequestParam("code") String code,
|
|
|
- HttpServletResponse response){
|
|
|
+ HttpServletResponse response) {
|
|
|
try {
|
|
|
response.sendRedirect("https://staticweb.hnthyy.cn/wxService/" + code + '/' + to);
|
|
|
} catch (IOException e) {
|
|
|
throw new RuntimeException(e);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @PassToken
|
|
|
+ @GetMapping("/guideBillScan")
|
|
|
+ public void redirectGuideBillScan(@RequestParam("patNo") String patNo,
|
|
|
+ HttpServletResponse response) {
|
|
|
+ try {
|
|
|
+ response.sendRedirect("https://open.weixin.qq.com/connect/oauth2/authorize?" +
|
|
|
+ "appid=wxbde6b16acad84204&redirect_uri=http://staticweb.hnthyy.cn/wxserver/redirect/page2?" +
|
|
|
+ "to=fromGuideBillQrScan_" + patNo + "&response_type=code&scope=snsapi_base&state=1#wechat_redirect");
|
|
|
+ } catch (IOException e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|