Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Dgiot
Commits
ca528192
Commit
ca528192
authored
2 years ago
by
dawnwinterLiu
Browse files
Options
Download
Email Patches
Plain Diff
fix: replace_param
parent
b4179664
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/dgiot_http/src/umeng/dgiot_umeng.erl
+6
-6
apps/dgiot_http/src/umeng/dgiot_umeng.erl
with
6 additions
and
6 deletions
+6
-6
apps/dgiot_http/src/umeng/dgiot_umeng.erl
+
6
-
6
View file @
ca528192
...
...
@@ -772,12 +772,12 @@ replace_param(Param, ProductName, ProductId, DeviceId, Key, Value, Alarm_created
Str2
=
re
:
replace
(
Str1
,
"%DEVICENAME%"
,
DeviceName
,
[
global
,
{
return
,
list
}]),
Str3
=
re
:
replace
(
Str2
,
"%DEVICEADDR%"
,
DeviceAddr
,
[
global
,
{
return
,
list
}]),
Str4
=
re
:
replace
(
Str3
,
"%DATE%"
,
Date
,
[
global
,
{
return
,
list
}]),
Str
4
=
re
:
replace
(
Str
3
,
"%DATETIME%"
,
DateTime
,
[
global
,
{
return
,
list
}]),
Str
5
=
re
:
replace
(
Str
4
,
"%USERNAME%"
,
<<
"admin"
>>
,
[
global
,
{
return
,
list
}]),
Str
6
=
re
:
replace
(
Str
5
,
"%TRIGGERTIME%"
,
Alarm_createdAt
,
[
global
,
{
return
,
list
}]),
Str
7
=
re
:
replace
(
Str
6
,
"%DATAPOINTNAME%"
,
DataPointname
,
[
global
,
{
return
,
list
}]),
Str
8
=
re
:
replace
(
Str
7
,
"%TRIGGERDESCRIPTION%"
,
TriggerdeScription
,
[
global
,
{
return
,
list
}]),
re
:
replace
(
Str
8
,
"%NOWVALUE%"
,
dgiot_utils
:
to_list
(
Value
),
[
global
,
{
return
,
binary
}]).
Str
5
=
re
:
replace
(
Str
4
,
"%DATETIME%"
,
DateTime
,
[
global
,
{
return
,
list
}]),
Str
6
=
re
:
replace
(
Str
5
,
"%USERNAME%"
,
<<
"admin"
>>
,
[
global
,
{
return
,
list
}]),
Str
7
=
re
:
replace
(
Str
6
,
"%TRIGGERTIME%"
,
Alarm_createdAt
,
[
global
,
{
return
,
list
}]),
Str
8
=
re
:
replace
(
Str
7
,
"%DATAPOINTNAME%"
,
DataPointname
,
[
global
,
{
return
,
list
}]),
Str
9
=
re
:
replace
(
Str
8
,
"%TRIGGERDESCRIPTION%"
,
TriggerdeScription
,
[
global
,
{
return
,
list
}]),
re
:
replace
(
Str
9
,
"%NOWVALUE%"
,
dgiot_utils
:
to_list
(
Value
),
[
global
,
{
return
,
binary
}]).
...
...
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
Menu
Projects
Groups
Snippets
Help