Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Dgiot
Commits
835f1edc
Commit
835f1edc
authored
3 years ago
by
jhonliu
Browse files
Options
Download
Plain Diff
Merge branch 'master' of github.com:dgiot/dgiot
parents
d7229100
64e387f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/dgiot/src/utils/dgiot_tracer.erl
+1
-1
apps/dgiot/src/utils/dgiot_tracer.erl
with
1 addition
and
1 deletion
+1
-1
apps/dgiot/src/utils/dgiot_tracer.erl
+
1
-
1
View file @
835f1edc
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment