This commit is contained in:
anlicheng 2024-09-11 17:38:14 +08:00
parent 972c97aa23
commit e4877d18b0

View File

@ -196,7 +196,8 @@ format_event(LocationCode, DynamicLocationCode, EventType, #{<<"event_code">> :=
true ->
Len = length(FakeLocationCodes),
RandomIndex = rand:uniform(Len),
lists:nth(RandomIndex, FakeLocationCodes);
Code = lists:nth(RandomIndex, FakeLocationCodes),
list_to_binary(Code);
false ->
LocationCode
end,