From ee9bfc3bc4f755571168ab727e81437beeb067af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E7=A4=BC=E6=88=90?= Date: Wed, 1 Mar 2023 17:56:53 +0800 Subject: [PATCH] fix router --- apps/iot/src/http_router_handler.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/iot/src/http_router_handler.erl b/apps/iot/src/http_router_handler.erl index 2eece01..e292b11 100644 --- a/apps/iot/src/http_router_handler.erl +++ b/apps/iot/src/http_router_handler.erl @@ -63,8 +63,8 @@ handle_request("GET", "/router/detail", #{<<"router_id">> := RouterId}, _) -> {ok, 200, iot_util:json_data(RouterInfo)} end; -handle_request("POST", "/router/changer_status", _, #{<<"router_id">> := RouterId, <<"status">> := NStatus}) -> - lager:debug("[router_handler] post params is: ~p", [_Params]), +handle_request("POST", "/router/changer_status", _, Params = #{<<"router_id">> := RouterId, <<"status">> := NStatus}) -> + lager:debug("[router_handler] post params is: ~p", [Params]), case router_model:change_status(RouterId, NStatus) of ok ->