fix router
This commit is contained in:
parent
bf9369df6d
commit
ee9bfc3bc4
@ -63,8 +63,8 @@ handle_request("GET", "/router/detail", #{<<"router_id">> := RouterId}, _) ->
|
|||||||
{ok, 200, iot_util:json_data(RouterInfo)}
|
{ok, 200, iot_util:json_data(RouterInfo)}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
handle_request("POST", "/router/changer_status", _, #{<<"router_id">> := RouterId, <<"status">> := NStatus}) ->
|
handle_request("POST", "/router/changer_status", _, Params = #{<<"router_id">> := RouterId, <<"status">> := NStatus}) ->
|
||||||
lager:debug("[router_handler] post params is: ~p", [_Params]),
|
lager:debug("[router_handler] post params is: ~p", [Params]),
|
||||||
|
|
||||||
case router_model:change_status(RouterId, NStatus) of
|
case router_model:change_status(RouterId, NStatus) of
|
||||||
ok ->
|
ok ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user