This commit is contained in:
anlicheng 2023-07-28 17:13:37 +08:00
parent 3d39e0e7bd
commit 53fbfc5b12
2 changed files with 2 additions and 2 deletions

View File

@ -384,7 +384,7 @@ code_change(_OldVsn, StateName, State = #state{}, _Extra) ->
convert_fields(#{<<"key">> := Key, <<"value">> := Value, <<"unit">> := Unit}) ->
#{Key => jiffy:encode(#{<<"value">> => Value, <<"unit">> => Unit}, [force_utf8])};
convert_fields(#{<<"key">> := Key, <<"value">> := Value}) ->
#{Key => Value}.
#{Key => #{<<"value">> => Value}}.
%%
router_uuid(#{<<"device_uuid">> := DeviceUUID}, _) when is_binary(DeviceUUID), DeviceUUID /= <<>> ->

View File

@ -52,7 +52,7 @@
[
{host, "39.98.184.67"},
{port, 8086},
{token, <<"VlBhRqHguo7exc9C8DR2ol7JV8Gumc5MhGaPhd7Rr9UGhqAZET67tmI0CedIfpc1Tg-MaLwPcwzg_1iYZtvsZw==">>}
{token, <<"0DGZaV_wk6OCt_Bazk5W_9L3Zo-y-bGzwPS6NDGAqy7iSzPVTgC0paINNJ6V3y3Eo_JYfWAHhXI8OZTDnW3IRQ==">>}
]
}