Browse Source

下发

master
zhaoy 9 months ago
parent
commit
0901b2a1bf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      BPA.SAAS.KitChenManage.Application/Device/Services/DevicePushRecodeService.cs

+ 1
- 1
BPA.SAAS.KitChenManage.Application/Device/Services/DevicePushRecodeService.cs View File

@@ -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<dynamic>(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();


Loading…
Cancel
Save