From d4e1e8ea8bb67f1591bb6509185084a9da3ad74e Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Wed, 18 Jun 2025 16:06:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E5=B1=8F=E8=94=BD=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/iot/src/iot_ai_router.erl | 6 +----- config/sys-prod.config | 3 +++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/iot/src/iot_ai_router.erl b/apps/iot/src/iot_ai_router.erl index 64709be..261555e 100644 --- a/apps/iot/src/iot_ai_router.erl +++ b/apps/iot/src/iot_ai_router.erl @@ -12,7 +12,6 @@ %% API -export([route_uuid/3]). --export([set_tests/1]). -spec route_uuid(RouterUUID :: binary(), EventType :: integer(), Params :: map()) -> no_return(). route_uuid(RouterUUID, EventType, Params) when is_binary(RouterUUID), is_integer(EventType), is_map(Params) -> @@ -34,7 +33,4 @@ route_uuid(RouterUUID, EventType, Params) when is_binary(RouterUUID), is_integer lager:debug("[iot_ai_router] hget location_code, uuid: ~p, not found", [RouterUUID]); {error, Reason} -> lager:debug("[iot_ai_router] hget location_code uuid: ~p, get error: ~p", [RouterUUID, Reason]) - end. - -set_tests(TestEventTypes) when is_list(TestEventTypes) -> - application:set_env(iot, test_event_types, TestEventTypes). + end. \ No newline at end of file diff --git a/config/sys-prod.config b/config/sys-prod.config index f2f7874..7410074 100644 --- a/config/sys-prod.config +++ b/config/sys-prod.config @@ -11,6 +11,9 @@ {port, 18080} ]}, + %% 暂时不推送的消息类型 + {test_event_types, [16, 23]}, + %% 数据的最大缓存量 {device_cache_size, 200},