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 -> true ->
Len = length(FakeLocationCodes), Len = length(FakeLocationCodes),
RandomIndex = rand:uniform(Len), RandomIndex = rand:uniform(Len),
lists:nth(RandomIndex, FakeLocationCodes); Code = lists:nth(RandomIndex, FakeLocationCodes),
list_to_binary(Code);
false -> false ->
LocationCode LocationCode
end, end,