From e73972218e4ea765124ce4cda72f33b5c571b09d Mon Sep 17 00:00:00 2001 From: fyf <11621@LAPTOP-04QQU0AO> Date: Tue, 30 May 2023 10:01:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=B0=E5=9C=BA=E8=B0=83=E8=AF=95=E6=94=B9?= =?UTF-8?q?=E5=8A=A899?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/example/bpa/service/BusinessServer.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/example/bpa/service/BusinessServer.java b/app/src/main/java/com/example/bpa/service/BusinessServer.java index de2a566..8e6b8e2 100644 --- a/app/src/main/java/com/example/bpa/service/BusinessServer.java +++ b/app/src/main/java/com/example/bpa/service/BusinessServer.java @@ -142,20 +142,16 @@ public class BusinessServer { ModbusTcpServer.get().WriteBool(bs.plcvar, false); MessageLog.ShowUserMessage(UserLogEnum.订单处理日志,message+"下发成功!"); } - + //将其余料仓出料设置为0,重置 for (int k=1;k<=10;k++) { if(!liaochang.contains(k)) { DeviceData.Get().setDemandValue((short) 0, k, new IWriteCallBack() { @Override - public void onSuccess() { - MessageLog.ShowInfo(message+"下发成功!"); - } + public void onSuccess() { } @Override - public void onFailure(String ErrorMsg) { - MessageLog.ShowInfo(message+"下发失败!"+ErrorMsg); - } + public void onFailure(String ErrorMsg) {} }); } }