| | |
| | | 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()); |
| | | |
| | | } |
| | | }; |
| | |
| | | case 8: |
| | | { |
| | | var accounts1 = new JObject(); |
| | | if (dictionary.ContainsKey("Type")) |
| | | { |
| | | accounts1.Add("Type", dictionary["Type"]); |
| | | } |
| | | if (dictionary.ContainsKey("Option4")) |
| | | { |
| | | accounts1.Add("Option4", dictionary["Option4"]); |