From 6d3ea08855337c0cfcc60df2903d3431611c7097 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期六, 13 十二月 2025 17:36:56 +0800
Subject: [PATCH] 优化程序,输送线入库按钮对接

---
 项目代码/WCSServices/WIDESEAWCS_Server/Controllers/AGV/AGVController.cs |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCSServices/WIDESEAWCS_Server/Controllers/AGV/AGVController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCSServices/WIDESEAWCS_Server/Controllers/AGV/AGVController.cs"
index 51c7860..98f0bee 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCSServices/WIDESEAWCS_Server/Controllers/AGV/AGVController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCSServices/WIDESEAWCS_Server/Controllers/AGV/AGVController.cs"
@@ -141,24 +141,17 @@
 
                 if (stationManger.StationType == StationTypeEnum.StationType_OnlyOutbound.ObjToInt())
                 {
-                    commonConveyorLine.Communicator.Write("21", (short)256);
+                    commonConveyorLine.Communicator.Write("21", new byte[] { 1, 0 });
                 }
                 else
                 {
-                    commonConveyorLine.Communicator.Write("23", (short)256);
+                    commonConveyorLine.Communicator.Write("23", new byte[] { 1, 0 });
                 }
                 content.OK();
             }
             catch (Exception ex)
             {
-                if (ex.Message.Contains("鏁版嵁鍐欏叆锛屽湴鍧�锛氥��23銆戯紝鍐欏叆鐨勬暟鎹細銆�256銆�") || ex.Message.Contains("鏁版嵁鍐欏叆锛屽湴鍧�锛氥��21銆戯紝鍐欏叆鐨勬暟鎹細銆�256銆�"))
-                {
-                    content.OK();
-                }
-                else
-                {
-                    content.Error(ex.Message);
-                }
+                content.Error(ex.Message);
             }
             return content;
         }

--
Gitblit v1.9.3