feat: user/trace

This commit is contained in:
dawnwinterLiu 2022-05-31 20:54:30 +08:00
parent 70b9ee3a35
commit 64e387f1c6

View File

@ -101,7 +101,7 @@ check_trace(From, Topic, Payload) ->
case get_trace({clientid, From}) of
true ->
BinClientId = dgiot_utils:to_binary(From),
dgiot_mqtt:publish(From, <<"$dg/trace/", BinClientId/binary, "/", Topic/binary>>, Payload);
dgiot_mqtt:publish(From, <<"$dg/user/trace/", BinClientId/binary, "/", Topic/binary>>, Payload);
false ->
%% todo Topic安全校验不好做
%% case get_trace({topic, Topic}) of