diff --git a/OpenAuth.App/BaseApp/Subscribe/ConfigSubscribe.cs b/OpenAuth.App/BaseApp/Subscribe/ConfigSubscribe.cs index 99b2168..0e5d2b5 100644 --- a/OpenAuth.App/BaseApp/Subscribe/ConfigSubscribe.cs +++ b/OpenAuth.App/BaseApp/Subscribe/ConfigSubscribe.cs @@ -70,12 +70,12 @@ public class ConfigSubscribe : IJob thing/product/{gateway_sn}/property/set_reply 设备属性设置的响应 thing/product/{gateway_sn}/drc/up DRC 协议上行*/ var tempStr = topic.Replace(sn, "*"); - Console.WriteLine($"成功调用主题 [{topic}] 的消息: {message}"); + //Console.WriteLine($"成功调用主题 [{topic}] 的消息: {message}"); // 主题方法 var result = JsonConvert.DeserializeObject>(message); var method = result.method; var data = result.data; - long code = data.code; + long code = data.result; switch (tempStr) { // todo @@ -83,7 +83,6 @@ public class ConfigSubscribe : IJob // 航线进度处理 // 任务取消 thing/product/*/services_reply case "thing/product/*/services_reply": - switch (method) { case "flighttask_prepare": // 下发任务响应 @@ -134,6 +133,9 @@ public class ConfigSubscribe : IJob break; } + break; + default: + Console.WriteLine($"未进入主题处理"); break; } }