From 27cfc84e432d9ddfc3559a18095bf217d032370d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=BC=9F?= <421281095@qq.com> Date: Fri, 20 Jun 2025 16:35:58 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E5=93=8D=E5=BA=94=E6=B6=88=E6=81=AF?= =?UTF-8?q?=EF=BC=8C=E9=94=99=E8=AF=AF=E7=A0=81=E5=8F=96=E9=94=99=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenAuth.App/BaseApp/Subscribe/ConfigSubscribe.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; } }