From 11bb118f2485e038dcc5b51ed6f1f94ae6681740 Mon Sep 17 00:00:00 2001 From: anlicheng Date: Mon, 26 Jun 2023 10:43:33 +0800 Subject: [PATCH] fix --- apps/iot/src/http_handler/http_host_handler.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/iot/src/http_handler/http_host_handler.erl b/apps/iot/src/http_handler/http_host_handler.erl index 74f99bf..d5386e8 100644 --- a/apps/iot/src/http_handler/http_host_handler.erl +++ b/apps/iot/src/http_handler/http_host_handler.erl @@ -192,7 +192,7 @@ handle_request(_, Path, _, _) -> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% 追加service_name参数 -append_service_name(#{<<"serivce_name">> := ServiceName}, Reply) when is_binary(ServiceName), ServiceName =/= <<"">> -> +append_service_name(#{<<"service_name">> := ServiceName}, Reply) when is_binary(ServiceName), ServiceName =/= <<"">> -> Reply#{<<"to">> => ServiceName}; append_service_name(_, Reply) -> Reply. \ No newline at end of file