Browse Source

fixed paylaod null issue

kennyh 1 month ago
parent
commit
23f1336d12
1 changed files with 2 additions and 5 deletions
  1. 2 5
      apps/emqx_bridge_http/src/emqx_bridge_http_connector.erl

+ 2 - 5
apps/emqx_bridge_http/src/emqx_bridge_http_connector.erl

@@ -405,7 +405,7 @@ on_query(
                 reason => Reason,
                 connector => InstId
             }),
-Result;
+            Result;
         _Success ->
             Result
     end.
@@ -716,9 +716,6 @@ encode_payload_with_base64(Msg) ->
     Base64Payload = base64:encode(Payload),
     maps:put(payload, Base64Payload, Msg).
 
-% 辅助函数:将二进制数据转换为16进制字符串
-binary_to_hex(Bin) ->
-    lists:flatten([io_lib:format("~2.16.0B", [Byte]) || <<Byte>> <= Bin]).
 render_headers(HeaderTks, RenderTmplFunc, Msg) ->
     lists:map(
         fun({K, V}) ->
@@ -918,4 +915,4 @@ join_paths_test_() ->
         ?_assertEqual("abc///cde/", join_paths("abc//", "//cde/"))
     ].
 
--endif.
+-endif.