From d8d5bf698dedb7f9e96be1798beddbcfef603985 Mon Sep 17 00:00:00 2001 From: anlicheng Date: Thu, 31 Aug 2023 17:20:37 +0800 Subject: [PATCH] fix --- apps/iot/src/http_handler/host_handler.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/iot/src/http_handler/host_handler.erl b/apps/iot/src/http_handler/host_handler.erl index c005f59..75cdb0b 100644 --- a/apps/iot/src/http_handler/host_handler.erl +++ b/apps/iot/src/http_handler/host_handler.erl @@ -33,7 +33,7 @@ handle_request("GET", "/host/metric", #{<<"uuid">> := UUID}, _) -> end; %% 处理主机的授权的 取消激活 -handle_request("GET", "/host/status", _, #{<<"uuid">> := UUID}) when is_binary(UUID) -> +handle_request("GET", "/host/status", #{<<"uuid">> := UUID}, _) when is_binary(UUID) -> case iot_host:get_pid(UUID) of undefined -> {ok, 200, iot_util:json_error(404, <<"host not found">>)};