fix taskId
This commit is contained in:
parent
6c9f8549d0
commit
5112bf1d3d
@ -185,9 +185,11 @@ format_event(LocationCode, DynamicLocationCode, EventType, #{<<"event_code">> :=
|
|||||||
end, Attachments0),
|
end, Attachments0),
|
||||||
|
|
||||||
% <<"occurrenceTime">> => <<"2023-06-10 12:00:00">>,
|
% <<"occurrenceTime">> => <<"2023-06-10 12:00:00">>,
|
||||||
|
|
||||||
|
LocationCode1 = fake_location_code(EventCode, LocationCode),
|
||||||
DeviceInfo = #{
|
DeviceInfo = #{
|
||||||
% <<"location">> => LocationCode,
|
% <<"location">> => LocationCode,
|
||||||
<<"location">> => fake_location_code(EventCode, LocationCode),
|
<<"location">> => LocationCode1,
|
||||||
<<"category">> => EventCode,
|
<<"category">> => EventCode,
|
||||||
<<"description">> => Description,
|
<<"description">> => Description,
|
||||||
<<"occurrenceTime">> => Datetime,
|
<<"occurrenceTime">> => Datetime,
|
||||||
@ -197,7 +199,7 @@ format_event(LocationCode, DynamicLocationCode, EventType, #{<<"event_code">> :=
|
|||||||
ReqData = #{
|
ReqData = #{
|
||||||
<<"sign">> => sign(DeviceInfo, PriKey),
|
<<"sign">> => sign(DeviceInfo, PriKey),
|
||||||
<<"sysId">> => ?SYS_ID,
|
<<"sysId">> => ?SYS_ID,
|
||||||
<<"taskId">> => generate_task_id(DynamicLocationCode, EventCode),
|
<<"taskId">> => generate_task_id(LocationCode1, EventCode),
|
||||||
<<"count">> => 1,
|
<<"count">> => 1,
|
||||||
<<"deviceInfo">> => DeviceInfo
|
<<"deviceInfo">> => DeviceInfo
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user