diff --git a/apps/iot/src/endpoint/iot_jinzhi_endpoint.erl b/apps/iot/src/endpoint/iot_jinzhi_endpoint.erl index 0f8fc4f..3bc6192 100644 --- a/apps/iot/src/endpoint/iot_jinzhi_endpoint.erl +++ b/apps/iot/src/endpoint/iot_jinzhi_endpoint.erl @@ -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), - <> = LocationCode, DeviceInfo = #{ - <<"location">> => Loc, + <<"location">> => LocationCode, <<"category">> => EventCode, - <<"device_location">> => LocationCode, <<"description">> => Description, <<"occurrenceTime">> => Datetime, <<"attachments">> => Attachments