From 42178c2120a5595a57d8f3d5a394ad2caeac6585 Mon Sep 17 00:00:00 2001 From: czw <selecti@yeah.net> Date: 星期日, 06 七月 2025 13:37:44 +0800 Subject: [PATCH] 1 --- 2025年6月12日/AuxAllWCS/Build/Project/代码/VS自定义类/AutoThread.cs | 38 +++++++++++++++++++++++++++++--------- 1 files changed, 29 insertions(+), 9 deletions(-) diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/AutoThread.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/AutoThread.cs" index a7b454f..2627aa9 100644 --- "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/AutoThread.cs" +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/AutoThread.cs" @@ -303,10 +303,13 @@ sceneType = 1, cntrCode = traycode, })); - if (str.Contains("true")) + var strr = JsonConvert.DeserializeObject<Mesrespone>(str); + if (strr != null && strr.success) + //if (str.Contains("true")) { //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R10", "true", "缁村笇灏旀姄鑷�Queue"); - tag.wxr1.R10 = true; + //tag.wxr1.R10 = true; + Conn.榛樿Redis.SetValue(VERX.deviceName + ".R10", "true", VERX.deviceName + "Queue"); //tag.wxr1.R44_LAST = false; RedisHelper.Add($"缁村笇灏旀姄鑷�.R44_LAST", "false", out string msg); } @@ -382,10 +385,13 @@ sceneType = 1, cntrCode = traycode, })); - if (str.Contains("true")) + var strr = JsonConvert.DeserializeObject<Mesrespone>(str); + if (strr != null && strr.success) + //if (str.Contains("true")) { //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R10", "true", "缁村笇灏旀姄鑷�Queue"); - tag.wxr1.R11 = true; + //tag.wxr1.R11 = true; + Conn.榛樿Redis.SetValue(VERX.deviceName + ".R11", "true", VERX.deviceName + "Queue"); //tag.wxr1.R46_LAST = false; RedisHelper.Add($"缁村笇灏旀姄鑷�.R46_LAST", "false", out string msg); } @@ -461,10 +467,13 @@ sceneType = 1, cntrCode = traycode, })); - if (str.Contains("true")) + var strr = JsonConvert.DeserializeObject<Mesrespone>(str); + if (strr != null && strr.success) + //if (str.Contains("true")) { //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R10", "true", "缁村笇灏旀姄鑷�Queue"); - tag.wxr2.R10 = true; + //tag.wxr2.R10 = true; + Conn.榛樿Redis.SetValue(VERX.deviceName + ".R10", "true", VERX.deviceName + "Queue"); //tag.wxr2.R44_LAST = false; RedisHelper.Add($"缁村笇灏旀姄鑷�.R44_LAST", "false", out string msg); } @@ -543,12 +552,17 @@ sceneType = 1, cntrCode = traycode, })); - if (str.Contains("true")) + var strr = JsonConvert.DeserializeObject<Mesrespone>(str); + if (strr != null && strr.success) { - //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R10", "true", "缁村笇灏旀姄鑷�Queue"); - tag.wxr2.R11 = true; + //Conn.榛樿Redis.SetValue("缁村笇灏旀姄鑷�.R11", "true", "缁村笇灏旀姄鑷�Queue"); + //tag.wxr2.R11 = true; + + LogHelper.Info($"Threadwxr2R銆傘� -鍐橰11 true"); + Conn.榛樿Redis.SetValue(VERX.deviceName + ".R11", "true", VERX.deviceName + "Queue"); //tag.wxr2.R46_LAST = false; RedisHelper.Add($"缁村笇灏旀姄鑷�.R46_LAST", "false", out string msg); + LogHelper.Info($"Threadwxr2R銆傘� 鏍¢獙涓嬫枡瀹屾垚銆�); } else { @@ -2443,6 +2457,12 @@ public Ddata data { get; set; } public object extra { get; set; } } + class Mesrespone + { + public bool success { get; set; } + public string msg { get; set; } + public object extra { get; set; } + } public class Ddata { -- Gitblit v1.9.1