From fdf8db14a914c8368b72017225c817fc765a3b80 Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Fri, 21 Mar 2025 14:18:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E7=81=AB=E7=A6=BB=E4=BA=BA+=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E7=BB=99=E9=87=91=E6=99=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/iot/src/iot_ai_router.erl | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/apps/iot/src/iot_ai_router.erl b/apps/iot/src/iot_ai_router.erl index 16d03d5..3e2a488 100644 --- a/apps/iot/src/iot_ai_router.erl +++ b/apps/iot/src/iot_ai_router.erl @@ -18,13 +18,10 @@ route_uuid(RouterUUID, EventType, Params) when is_binary(RouterUUID), is_integer %% 查找终端设备对应的点位信息 case redis_client:hgetall(RouterUUID) of {ok, #{<<"location_code">> := LocationCode, <<"dynamic_location_code">> := DynamicLocationCode}} when is_binary(LocationCode), is_binary(DynamicLocationCode) -> - %% 动火离人不推送给金智 2024-12-02 - case lists:member(EventType, [15]) of - true -> - iot_donghuoliren_endpoint:forward(LocationCode, DynamicLocationCode, EventType, Params); - false -> - iot_jinzhi_endpoint:forward(LocationCode, DynamicLocationCode, EventType, Params) - end; + %% 动火离人推送给金智 2024-12-02, 2边都要推送 + lists:member(EventType, [15]) andalso iot_donghuoliren_endpoint:forward(LocationCode, DynamicLocationCode, EventType, Params), + %% 动火离人推送给金智 2024-03-21 + iot_jinzhi_endpoint:forward(LocationCode, DynamicLocationCode, EventType, Params); {ok, _} -> lager:debug("[iot_ai_router] the event_data hget location_code, uuid: ~p, not found", [RouterUUID]); {error, Reason} ->