调整融嘉称重配置

dev
lisai17@sina.com 2021-04-15 22:10:43 +08:00
parent 44f18adfd7
commit d0c69a3118
2 changed files with 9 additions and 2 deletions

View File

@ -202,6 +202,13 @@ public class DeviceThread extends Thread {
} else {
scale = new XiShuiScale(which + "_scale", scaleconf.getString("ip"), scaleconf.getIntValue("port"));
}
} else if (supermarket_id == 5) {
// 2021-04-15 融嘉入口磅换了
if (which.startsWith(Enums.CtrlFlowEnum.R.name())) {
scale = new DingsongScale(which + "_scale", scaleconf.getString("ip"), scaleconf.getIntValue("port"));
} else {
scale = new XiShuiScale(which + "_scale", scaleconf.getString("ip"), scaleconf.getIntValue("port"));
}
} else if (supermarket_id == 7) {
scale = new KeLiScale(which + "_scale", scaleconf.getString("ip"), scaleconf.getIntValue("port"));
} else if (supermarket_id == 8 || supermarket_id == 9) {

View File

@ -95,7 +95,7 @@ public class Config extends JFinalConfig {
public static DeviceThread deviceThread = new DeviceThread();
public static SocketIOService socketio = null;
private static boolean client_run = true;
public static final String CLINET_VERSION = "20210311";
public static final String CLINET_VERSION = "20210415";
public static String getRootPath() {
return PathKit.getWebRootPath()