调整融嘉称重配置
parent
44f18adfd7
commit
d0c69a3118
|
|
@ -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) {
|
||||
|
|
@ -311,7 +318,7 @@ public class DeviceThread extends Thread {
|
|||
|
||||
try {
|
||||
return scale.weigh15();
|
||||
}catch (Exception e){
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue