动火离人+推送给金智

This commit is contained in:
anlicheng 2025-03-21 14:18:42 +08:00
parent f0def4a786
commit fdf8db14a9

View File

@ -18,13 +18,10 @@ route_uuid(RouterUUID, EventType, Params) when is_binary(RouterUUID), is_integer
%% %%
case redis_client:hgetall(RouterUUID) of case redis_client:hgetall(RouterUUID) of
{ok, #{<<"location_code">> := LocationCode, <<"dynamic_location_code">> := DynamicLocationCode}} when is_binary(LocationCode), is_binary(DynamicLocationCode) -> {ok, #{<<"location_code">> := LocationCode, <<"dynamic_location_code">> := DynamicLocationCode}} when is_binary(LocationCode), is_binary(DynamicLocationCode) ->
%% 2024-12-02 %% 2024-12-02, 2
case lists:member(EventType, [15]) of lists:member(EventType, [15]) andalso iot_donghuoliren_endpoint:forward(LocationCode, DynamicLocationCode, EventType, Params),
true -> %% 2024-03-21
iot_donghuoliren_endpoint:forward(LocationCode, DynamicLocationCode, EventType, Params); iot_jinzhi_endpoint:forward(LocationCode, DynamicLocationCode, EventType, Params);
false ->
iot_jinzhi_endpoint:forward(LocationCode, DynamicLocationCode, EventType, Params)
end;
{ok, _} -> {ok, _} ->
lager:debug("[iot_ai_router] the event_data hget location_code, uuid: ~p, not found", [RouterUUID]); lager:debug("[iot_ai_router] the event_data hget location_code, uuid: ~p, not found", [RouterUUID]);
{error, Reason} -> {error, Reason} ->