From 18bad2af254440e0b323fe10b9833aba7a14bfdc Mon Sep 17 00:00:00 2001
From: Kimdiego2098 <2248356998@qq.com>
Date: Wed, 24 Jan 2024 16:15:26 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4MqttRpc=E6=8F=90=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ThingsGateway.Foundation/src/OperResult/OperResult.cs | 3 +++
.../MqttClient/MqttClient.other.cs | 7 ++++---
.../MqttClient/MqttClientProperty.cs | 2 +-
.../MqttServer/MqttServer.other.cs | 7 ++++---
.../MqttServer/MqttServerProperty.cs | 2 +-
5 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/src/foundation/ThingsGateway.Foundation/src/OperResult/OperResult.cs b/src/foundation/ThingsGateway.Foundation/src/OperResult/OperResult.cs
index 3721617af..fcf7f6be4 100644
--- a/src/foundation/ThingsGateway.Foundation/src/OperResult/OperResult.cs
+++ b/src/foundation/ThingsGateway.Foundation/src/OperResult/OperResult.cs
@@ -12,6 +12,8 @@
#endregion
+using Newtonsoft.Json;
+
namespace ThingsGateway.Foundation;
///
@@ -116,6 +118,7 @@ public class OperResult : IOperResult
///
/// 异常堆栈
///
+ [JsonIgnore]
public Exception? Exception;
///
diff --git a/src/plugin/ThingsGateway.Plugin.Mqtt/MqttClient/MqttClient.other.cs b/src/plugin/ThingsGateway.Plugin.Mqtt/MqttClient/MqttClient.other.cs
index 0b6387c57..ee94aa22e 100644
--- a/src/plugin/ThingsGateway.Plugin.Mqtt/MqttClient/MqttClient.other.cs
+++ b/src/plugin/ThingsGateway.Plugin.Mqtt/MqttClient/MqttClient.other.cs
@@ -157,7 +157,8 @@ public partial class MqttClient : BusinessBaseWithCacheIntervalScript>();
if (rpcDatas == null)
@@ -169,7 +170,7 @@ public partial class MqttClient : BusinessBaseWithCacheIntervalScript
/// Rpc写入Topic
///
- [DynamicProperty("Rpc写入Topic", "实际的写入主题为固定通配 {ThingsGateway/+/[RpcWrite]} ,其中RpcWrite为该属性填入内容,+通配符是不固定GUID值,每次执行写入时会在不同的主题中返回;返回结果主题会在主题后添加Response , 也就是{ThingsGateway/+/[RpcWrite]/Response}")]
+ [DynamicProperty("Rpc写入Topic", "实际的写入主题为固定通配 {ThingsGateway.Rpc/+/[RpcWrite]} ,其中RpcWrite为该属性填入内容,+通配符是不固定GUID值,每次执行写入时会在不同的主题中返回;返回结果主题会在主题后添加Response , 也就是{ThingsGateway.Rpc/+/[RpcWrite]/Response}")]
public string RpcWriteTopic
{
get
diff --git a/src/plugin/ThingsGateway.Plugin.Mqtt/MqttServer/MqttServer.other.cs b/src/plugin/ThingsGateway.Plugin.Mqtt/MqttServer/MqttServer.other.cs
index 32dcffa52..bc181dfeb 100644
--- a/src/plugin/ThingsGateway.Plugin.Mqtt/MqttServer/MqttServer.other.cs
+++ b/src/plugin/ThingsGateway.Plugin.Mqtt/MqttServer/MqttServer.other.cs
@@ -121,7 +121,8 @@ public partial class MqttServer : BusinessBaseWithCacheIntervalScript>();
if (rpcDatas == null)
@@ -131,7 +132,7 @@ public partial class MqttServer : BusinessBaseWithCacheIntervalScript
/// Rpc写入Topic
///
- [DynamicProperty("Rpc写入Topic", "实际的写入主题为固定通配 {ThingsGateway/+/[RpcWrite]} ,其中RpcWrite为该属性填入内容,+通配符是不固定GUID值,每次执行写入时会在不同的主题中返回;返回结果主题会在主题后添加Response , 也就是{ThingsGateway/+/[RpcWrite]/Response}")]
+ [DynamicProperty("Rpc写入Topic", "实际的写入主题为固定通配 {ThingsGateway.Rpc/+/[RpcWrite]} ,其中RpcWrite为该属性填入内容,+通配符是不固定GUID值,每次执行写入时会在不同的主题中返回;返回结果主题会在主题后添加Response , 也就是{ThingsGateway.Rpc/+/[RpcWrite]/Response}")]
public string RpcWriteTopic
{
get