巴河新磅调试修改
parent
3f0e44b12e
commit
8d715678dd
|
|
@ -400,8 +400,8 @@ public class DeviceThread extends Thread {
|
|||
return;
|
||||
}
|
||||
|
||||
// 永安砂站只有一个磅,同进同出,出入口共用道闸
|
||||
if (CliCacheData.SUP.getId() == 4 && Enums.WhichEnum.C01.name().equals(which)) {
|
||||
// 巴河两个砂站只有一个磅,同进同出,出入口共用道闸
|
||||
if ((CliCacheData.SUP.getId() == 4 || CliCacheData.SUP.getId() == 5) && Enums.WhichEnum.C01.name().equals(which)) {
|
||||
which = Enums.WhichEnum.R01.name();
|
||||
|
||||
if (num == 1) {
|
||||
|
|
|
|||
|
|
@ -120,7 +120,6 @@ public class CameraController extends Controller {
|
|||
String romid = null;
|
||||
String sn = null;
|
||||
String ipaddr = null;
|
||||
|
||||
if (json.containsKey("KeepAlive")) { // 心跳数据
|
||||
JSONObject keepAlive = json.getJSONObject("KeepAlive");
|
||||
|
||||
|
|
@ -169,7 +168,7 @@ public class CameraController extends Controller {
|
|||
boolean ret = ImageUtil.generateImage(imageFile, jpgFile);
|
||||
|
||||
if (!ret) {
|
||||
log.error("数据解析失败:%s", str);
|
||||
// log.error("数据解析失败:%s", str);
|
||||
renderJson(new JSONObject().fluentPut("ret", false).fluentPut("msg", "解析图片失败"));
|
||||
return;
|
||||
}
|
||||
|
|
@ -180,7 +179,6 @@ public class CameraController extends Controller {
|
|||
Camera camera = Config.deviceThread.getCameraByIp(ipaddr);
|
||||
|
||||
log.debug("识别成功:%s, %s", license, jpgFile);
|
||||
|
||||
if (camera != null) {
|
||||
camera.getController().onLicenseResult(license, jpgFile); // 识别到图片,回调
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue