From 0901b2a1bf1b35112741f5e06e84cb5049717faa Mon Sep 17 00:00:00 2001 From: zhaoy <137053305@qq.com> Date: Tue, 30 Jan 2024 13:23:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Device/Services/DevicePushRecodeService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BPA.SAAS.KitChenManage.Application/Device/Services/DevicePushRecodeService.cs b/BPA.SAAS.KitChenManage.Application/Device/Services/DevicePushRecodeService.cs index bd49360..497ad9e 100644 --- a/BPA.SAAS.KitChenManage.Application/Device/Services/DevicePushRecodeService.cs +++ b/BPA.SAAS.KitChenManage.Application/Device/Services/DevicePushRecodeService.cs @@ -67,7 +67,7 @@ namespace BPA.SAAS.KitChenManage.Application.Device.Services if (string.IsNullOrEmpty(Topic)) throw Oops.Oh("请配置相关topic"); data.Topic= Topic; data.DataResore = JsonConvert.SerializeObject(JsonConvert.DeserializeObject(input.Data.ToString())); - var res=await Push(Topic, new PushData() { Data=input.Data, DeviceId= input.DeviceAutoKey }); + var res=await Push(Topic, new PushData() { Data = data.DataResore, DeviceId = input.DeviceAutoKey }); if (res) { await _db.Insertable(data).CallEntityMethod(t => t.Create()).ExecuteCommandAsync();