diff --git a/src/main/java/com/zhgd/config/CorsConfig.java b/src/main/java/com/zhgd/config/CorsConfig.java index 59ba07f..5ba42a3 100644 --- a/src/main/java/com/zhgd/config/CorsConfig.java +++ b/src/main/java/com/zhgd/config/CorsConfig.java @@ -17,6 +17,7 @@ public class CorsConfig{ // config.addAllowedOrigin("*"); // config.addAllowedOrigin("http://10.75.253.12:6090"); // config.addAllowedOrigin("http://183.63.230.59:6090"); + config.addAllowedOrigin("https://hyjgxt.cn:6090"); config.addAllowedOrigin("https://xmgl.hyjgxt.cn:6090"); config.addAllowedHeader("*"); config.addAllowedMethod("*"); diff --git a/src/main/java/com/zhgd/xmgl/util/SMS.java b/src/main/java/com/zhgd/xmgl/util/SMS.java index 9b71726..92d01a5 100644 --- a/src/main/java/com/zhgd/xmgl/util/SMS.java +++ b/src/main/java/com/zhgd/xmgl/util/SMS.java @@ -55,7 +55,7 @@ public class SMS { // System.out.println(ret); try { - String result = HttpUtil.doPost("http://"+host+"/sms/message/informAlarm", params.toJSONString()); + String result = HttpUtil.doPost("https://"+host+"/sms/message/informAlarm", params.toJSONString()); System.out.println(result); } catch (Exception e) { throw new RuntimeException(e); @@ -64,7 +64,7 @@ public class SMS { public static void sendToPhone_YZM(JSONObject params) { try { - String result = HttpUtil.doPost("http://" + host + "/sms/message/code", params.toJSONString()); + String result = HttpUtil.doPost("https://" + host + "/sms/message/code", params.toJSONString()); System.out.println(result); } catch (Exception e) { throw new RuntimeException(e);