操作日志处理记录
This commit is contained in:
parent
19ff423fc2
commit
0424b6ae38
@ -559,6 +559,7 @@ namespace JiShe.IoT.DeviceAggregation
|
||||
};
|
||||
var packetTaskInfo = GetDeviceTelemetryPacketTaskInfo(ioTDBOptions, commandRequest, deviceInfo.Adapt<DeviceCacheInfos>(), input.PropertyList.Serialize());
|
||||
|
||||
|
||||
if (deviceInfo.IoTPlatform == IoTPlatformTypeEnum.OneNET)
|
||||
{
|
||||
await ioTDBDataChannelManageService.DeviceTelemetryTaskWriterAsync(DataChannelManage.DeviceTelemetryTaskDataChannel.Writer, (DistributedMessageCenterConst.OneNETUpgradeCommandIssuedEventName, packetTaskInfo));
|
||||
|
||||
@ -47,13 +47,13 @@ namespace JiShe.IoT
|
||||
var oneNETIssueMessageEntity = new DeviceTelemetryPacketTaskInfo()
|
||||
{
|
||||
DataBaseName = iotDBOptions.DataBaseName,
|
||||
DeviceType = $"{commandIssueInfo.DeviceType}",
|
||||
DeviceAddress = commandIssueInfo.DeviceAddress,
|
||||
DeviceType = $"{deviceInfo.DeviceType}",
|
||||
DeviceAddress = deviceInfo.DeviceAddress,
|
||||
IssueRawMessage = input.Serialize(),
|
||||
IssuePayload = messageBody,
|
||||
IoTDataType = IoTDBDataTypeConst.Command,
|
||||
TelemetrySource = (int)commandIssueInfo.SourceType,
|
||||
IoTPlatform = (int)commandIssueInfo.IoTPlatform,
|
||||
IoTPlatform = (int)deviceInfo.IoTPlatform,
|
||||
IoTPlatformProductId = deviceInfo.IoTPlatformProductId,
|
||||
IoTPlatformDeviceOpenInfo = deviceInfo.IoTPlatformDeviceOpenInfo,
|
||||
IoTPlatformAccountId = deviceInfo.IoTPlatformAccountId,
|
||||
@ -61,7 +61,7 @@ namespace JiShe.IoT
|
||||
IoTPlatformProductName = deviceInfo.IoTPlatformProductName,
|
||||
RetryCount = 0,
|
||||
IssueStatus = (int)DeviceCommandIssueStatusEnum.Unprocessed,
|
||||
LastIssueTime = DateTime.Now
|
||||
LastIssueTime = DateTime.Now,
|
||||
};
|
||||
|
||||
return oneNETIssueMessageEntity;
|
||||
|
||||
@ -449,6 +449,7 @@ namespace JiShe.IoT
|
||||
};
|
||||
var packetTaskInfo = GetDeviceTelemetryPacketTaskInfo(ioTDBOptions, commandRequest, deviceInfo.Adapt<DeviceCacheInfos>(), input.Commands.Serialize());
|
||||
|
||||
|
||||
await ioTDBDataChannelManageService.DeviceTelemetryTaskWriterAsync(DataChannelManage.DeviceTelemetryTaskDataChannel.Writer, (DistributedMessageCenterConst.OneNETCommandIssuedEventName, packetTaskInfo));
|
||||
|
||||
await redisPubSubService.PublishReliableAsync(DistributedMessageCenterConst.OneNETCommandIssuedEventName, packetTaskInfo);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user