环境变更

This commit is contained in:
pengjie 2024-04-22 21:37:20 +08:00
parent 7f7b70c911
commit a25b8d3321
2 changed files with 3 additions and 2 deletions

View File

@ -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("*");

View File

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