Parcourir la source

升级为https

lighter il y a 1 an
Parent
commit
a0e35fefd5

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

@@ -28,7 +28,7 @@ public class WeChatRedirectController {
     @GetMapping("/page")
     public void redirectRequest(@RequestParam("code") String code, HttpServletResponse response){
         try {
-            response.sendRedirect("http://staticweb.hnthyy.cn/wxService/" + code);
+            response.sendRedirect("https://staticweb.hnthyy.cn/wxService/" + code);
         } catch (IOException e) {
             throw new RuntimeException(e);
         }
@@ -40,7 +40,7 @@ public class WeChatRedirectController {
                                  @RequestParam("code") String code,
                                  HttpServletResponse response){
         try {
-            response.sendRedirect("http://staticweb.hnthyy.cn/wxService/" + code + '/' + to);
+            response.sendRedirect("https://staticweb.hnthyy.cn/wxService/" + code + '/' + to);
         } catch (IOException e) {
             throw new RuntimeException(e);
         }

+ 1 - 1
src/main/java/thyyxxk/wxservice_server/entity/electronichealthcard/BatchRegisterParams.java

@@ -14,5 +14,5 @@ public class BatchRegisterParams {
     private String phone1;
     private String patId;
     private String openid;
-    private String redirectUri = "http://staticweb.hnthyy.cn/activeHealthCard";
+    private String redirectUri = "https://staticweb.hnthyy.cn/activeHealthCard";
 }

+ 1 - 1
src/main/java/thyyxxk/wxservice_server/scheduled/QuestionnaireAfterVisit.java

@@ -72,7 +72,7 @@ public class QuestionnaireAfterVisit {
                 "clinicSatisfiedByPush_" + makeOutpatientVisitId(visit) :
                 "inpatientSatisfiedByPush_" + makeInpatientVisitId(visit);
         String url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxbde6b16acad84204&redirect_uri=" +
-                "http://staticweb.hnthyy.cn/wxserver/redirect/page2?to=" + targetPage +
+                "https://staticweb.hnthyy.cn/wxserver/redirect/page2?to=" + targetPage +
                 "&response_type=code&scope=snsapi_base&state=1#wechat_redirect";
         String msgContent = "{\"touser\":\"" + visit.getOpenid() + "\",\"data\":" +
                 "{\"keyword1\":{\"color\":\"#173177\",\"value\":\"" + visit.getPatName() + "\"}," +

+ 1 - 1
src/main/java/thyyxxk/wxservice_server/utils/PhysicalCheckPDFUtil.java

@@ -51,7 +51,7 @@ public class PhysicalCheckPDFUtil {
         } catch (Exception e) {
             e.printStackTrace();
         }
-        String downloadUrl = "http://staticweb.hnthyy.cn/medicalReport/" + fileName;
+        String downloadUrl = "https://staticweb.hnthyy.cn/medicalReport/" + fileName;
         log.info("生成体检报告下载链接:{}", downloadUrl);
         return ResultVoUtil.success();
     }

+ 2 - 2
src/main/resources/weChatOfficialAccounts.properties

@@ -9,8 +9,8 @@ mchKey=lilaiwflzIOLJI2320JLZL2Llisd02ak
 mchApiV3Key=zxkkOIL9Z909lkjl2lzczi2KLsol2wct
 mchSerialNo=6574E696C4DB0B93EBD0D29B5DE809F31E04FC6D
 
-jsapiNotifyUrl=http://staticweb.hnthyy.cn/wxserver/wxPayNotify/jsapi
-nativeNotifyUrl=http://staticweb.hnthyy.cn/wxserver/wxPayNotify/native
+jsapiNotifyUrl=https://staticweb.hnthyy.cn/wxserver/wxPayNotify/jsapi
+nativeNotifyUrl=https://staticweb.hnthyy.cn/wxserver/wxPayNotify/native
 
 qywxCorpId=wwf0b23c8b36012b34
 qywxSecret=wpHuNePfiDyotmpXjy5hUYGF0w8Ks5OPHSQp22z8oBk