mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-12-02 12:18:30 +08:00
feat: user/trace
This commit is contained in:
parent
70b9ee3a35
commit
64e387f1c6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user