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