Browse Source

更改代码中的服务器ip地址

develop
Mr.Wang 7 months ago
parent
commit
4bdd7c546f
  1. 6
      ruoyi-common/src/main/java/com/zc/common/constant/RedisStreamConstants.java
  2. 2
      zc-business/src/main/java/com/zc/business/controller/BroadcastController.java
  3. 8
      zc-business/src/main/java/com/zc/business/controller/DcMYSQLJob.java
  4. 2
      zc-business/src/main/java/com/zc/business/controller/NonAutomaticWarningController.java
  5. 2
      zc-business/src/main/java/com/zc/business/controller/VideoController.java

6
ruoyi-common/src/main/java/com/zc/common/constant/RedisStreamConstants.java

@ -10,7 +10,7 @@ public class RedisStreamConstants {
*/
public static class WebSocketDirectional {
public final static String KEY = "websocket:directional";
public final static String GROUP = "group1";
public final static String GROUP = "group2";
public final static String CONSUMER = "consumer1";
}
@ -19,7 +19,7 @@ public class RedisStreamConstants {
*/
public static class WebSocketStreamBroadcast {
public final static String KEY = "websocket:broadcast";
public final static String GROUP = "group1";
public final static String GROUP = "group2";
public final static String CONSUMER = "consumer1";
}
/**
@ -27,7 +27,7 @@ public class RedisStreamConstants {
*/
public static class WebSocketStreamEvent {
public final static String KEY = "websocket:event";
public final static String GROUP = "group1";
public final static String GROUP = "group2";
public final static String CONSUMER = "consumer1";
}
}

2
zc-business/src/main/java/com/zc/business/controller/BroadcastController.java

@ -39,7 +39,7 @@ public class BroadcastController extends BaseController {
private static final String SECRET = "21232f297a57a5a743894a0e4a801fc3";
private static final String CALLBACKURL = "http://10.0.81.202/broadcast/logIn";
private static final String CALLBACKURL = "http://10.0.111.11/broadcast/logIn";
private final static String URL = HTTP + "10.0.81.106/api/REST-API/";

8
zc-business/src/main/java/com/zc/business/controller/DcMYSQLJob.java

@ -21,7 +21,7 @@ import java.util.Date;
public class DcMYSQLJob {
//private final Environment environment;
private static final String IP = "10.0.81.202";
private static final String IP = "10.0.111.11";
private static final String PORT = "3306";
@ -36,7 +36,7 @@ public class DcMYSQLJob {
@Scheduled(cron = "0 0 22 * * ?")
//@Scheduled(cron = "0 10 * * * ?")
public void backupAthena() throws IOException {
String url = "jdbc:mysql://10.0.81.202:3306/athena?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true";
String url = "jdbc:mysql://10.0.111.11:3306/athena?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true";
extracted(url, "athena");
}
@ -45,7 +45,7 @@ public class DcMYSQLJob {
//@Scheduled(cron = "0 20 * * * ?")
public void backupJiHeDC() throws IOException {
// 数据库配置信息
String url = "jdbc:mysql://10.0.81.202:3306/jihe-dc?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true";
String url = "jdbc:mysql://10.0.111.11:3306/jihe-dc?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true";
extracted(url, "jihe-dc");
}
@ -54,7 +54,7 @@ public class DcMYSQLJob {
//@Scheduled(cron = "0 30 * * * ?")
public void backupJiHeDCPro() throws IOException {
// 数据库配置信息
String url = "jdbc:mysql://10.0.81.202:3306/jihe-dc-pro?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true";
String url = "jdbc:mysql://10.0.111.11:3306/jihe-dc-pro?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true";
extracted(url, "jihe-dc-pro");
}

2
zc-business/src/main/java/com/zc/business/controller/NonAutomaticWarningController.java

@ -134,7 +134,7 @@ public class NonAutomaticWarningController extends BaseController {
String illegalTrafficEvent = data.getString("illegalTrafficEvent");
String directionName = data.getString("directionName");
String crossingName = data.getString("crossingName");
String targetPicUrl = "https://10.0.81.202/fjyj" + data.getString("targetPicUrl");
String targetPicUrl = "https://10.0.111.11/fjyj" + data.getString("targetPicUrl");
String laneNo = data.getString("laneNo");
ArrayList<String> pictures = new ArrayList<>();

2
zc-business/src/main/java/com/zc/business/controller/VideoController.java

@ -316,7 +316,7 @@ public class VideoController extends BaseController {
Response response // 请求响应
= okHttp
.url(HTTP + "10.0.81.202:8081" + "/api/iot/device/query") // 请求地址
.url(HTTP + "10.0.111.11:8081" + "/api/iot/device/query") // 请求地址
.get(); // 请求方法
return JSON.parseObject(response.body().string(), AjaxResult.class);
}

Loading…
Cancel
Save