| | |
| | | return await System.Threading.Tasks.Task.Run(async () => |
| | | { |
| | | List<int> logicIdList = new List<int>(); |
| | | |
| | | Action<string, string> action = (topic, data) => |
| | | { |
| | | var gatewayID = topic.Split('/')[0]; |
| | |
| | | { |
| | | return; |
| | | } |
| | | |
| | | |
| | | if (topic == $"{gatewayID}/Logic/GetLogicList_Respon") |
| | | { |
| | | |
| | | Console.WriteLine("打印逻辑返回数据1===="); |
| | | var list = jObjectdata["Data"]["LogicList"]; |
| | | if (list == null) |
| | | { |
| | | return; |
| | | } |
| | | Console.WriteLine("打印逻辑返回数据2===="); |
| | | foreach (var listIfon in list) |
| | | { |
| | | var logicId = int.Parse(listIfon["LogicId"].ToString()); |
| | | logicIdList.Add(logicId); |
| | | |
| | | } |
| | | Console.WriteLine("打印逻辑返回数据3===="+logicIdList.Count.ToString()); |
| | | |
| | | } |
| | | }; |