bugfix: 响应消息,错误码取错值
parent
f66278375a
commit
27cfc84e43
|
|
@ -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<TopicServicesRequest<dynamic>>(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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue