lighter пре 1 месец
родитељ
комит
83547d4567

+ 6 - 6
src/main/java/thyyxxk/wxservice_server/controller/WeChatRedirectController.java

@@ -39,7 +39,7 @@ public class WeChatRedirectController {
     @GetMapping("/page")
     public void redirectRequest(@RequestParam("code") String code, HttpServletResponse response) {
         try {
-            response.sendRedirect("https://staticweb.hnthyy.cn/wxService/" + code);
+            response.sendRedirect("https://huaihai-tech.com/wxservice/" + code);
         } catch (IOException e) {
             throw new RuntimeException(e);
         }
@@ -51,7 +51,7 @@ public class WeChatRedirectController {
                                  @RequestParam("code") String code,
                                  HttpServletResponse response) {
         try {
-            response.sendRedirect("https://staticweb.hnthyy.cn/wxService/" + code + '/' + to);
+            response.sendRedirect("https://huaihai-tech.com/wxservice/" + code + '/' + to);
         } catch (IOException e) {
             throw new RuntimeException(e);
         }
@@ -63,7 +63,7 @@ public class WeChatRedirectController {
                                       HttpServletResponse response) {
         try {
             response.sendRedirect("https://open.weixin.qq.com/connect/oauth2/authorize?" +
-                    "appid=wxbde6b16acad84204&redirect_uri=http://staticweb.hnthyy.cn/wxserver/redirect/page2?" +
+                    "appid=wxbde6b16acad84204&redirect_uri=http://huaihai-tech.com/wxserver/redirect/page2?" +
                     "to=mzFeeList_" + patNo + "&response_type=code&scope=snsapi_base&state=1#wechat_redirect");
         } catch (IOException e) {
             throw new RuntimeException(e);
@@ -75,7 +75,7 @@ public class WeChatRedirectController {
     public void inpatientQrEntry(HttpServletResponse response) {
         try {
             response.sendRedirect("https://open.weixin.qq.com/connect/oauth2/authorize?" +
-                    "appid=wxbde6b16acad84204&redirect_uri=http://staticweb.hnthyy.cn/wxserver/redirect/page2?" +
+                    "appid=wxbde6b16acad84204&redirect_uri=http://huaihai-tech.com/wxserver/redirect/page2?" +
                     "to=inpatientQrEntry&response_type=code&scope=snsapi_base&state=1#wechat_redirect");
         } catch (IOException e) {
             throw new RuntimeException(e);
@@ -92,7 +92,7 @@ public class WeChatRedirectController {
         }
         try {
             response.sendRedirect("https://open.weixin.qq.com/connect/oauth2/authorize?" +
-                    "appid=wxbde6b16acad84204&redirect_uri=http://staticweb.hnthyy.cn/wxserver/redirect/page2?" +
+                    "appid=wxbde6b16acad84204&redirect_uri=http://huaihai-tech.com/wxserver/redirect/page2?" +
                     "to=" + path + "&response_type=code&scope=snsapi_base&state=1#wechat_redirect");
         } catch (IOException e) {
             throw new RuntimeException(e);
@@ -119,7 +119,7 @@ public class WeChatRedirectController {
         String path = "doctorArrangement_" + today + "_" + dept + "_" + doc;
         try {
             response.sendRedirect("https://open.weixin.qq.com/connect/oauth2/authorize?" +
-                    "appid=wxbde6b16acad84204&redirect_uri=http://staticweb.hnthyy.cn/wxserver/redirect/page2?" +
+                    "appid=wxbde6b16acad84204&redirect_uri=http://huaihai-tech.com/wxserver/redirect/page2?" +
                     "to=" + path + "&response_type=code&scope=snsapi_base&state=1#wechat_redirect");
         } catch (IOException e) {
             throw new RuntimeException(e);