fix jinzhi interface
This commit is contained in:
parent
924e313c80
commit
3aa1567611
@ -178,7 +178,6 @@ do_post(#event_data{id = Id, location_code = LocationCode, event_type = EventTyp
|
||||
params = Params = #{<<"event_code">> := EventCode, <<"description">> := Description, <<"datetime">> := Datetime, <<"attachments">> := Attachments0}},
|
||||
#state{pri_key = PriKey, url = Url, logger_pid = LoggerPid}) ->
|
||||
|
||||
|
||||
% <<"occurrenceTime">> => <<"2023-06-10 12:00:00">>,
|
||||
|
||||
Attachments = lists:map(fun(#{<<"filename">> := Filename, <<"name">> := Name}) ->
|
||||
@ -186,11 +185,9 @@ do_post(#event_data{id = Id, location_code = LocationCode, event_type = EventTyp
|
||||
#{<<"name">> => Name, <<"url">> => FileUrl}
|
||||
end, Attachments0),
|
||||
|
||||
<<Loc:12/binary, _/binary>> = LocationCode,
|
||||
DeviceInfo = #{
|
||||
<<"location">> => Loc,
|
||||
<<"location">> => LocationCode,
|
||||
<<"category">> => EventCode,
|
||||
<<"device_location">> => LocationCode,
|
||||
<<"description">> => Description,
|
||||
<<"occurrenceTime">> => Datetime,
|
||||
<<"attachments">> => Attachments
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user