Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
chejia-smart-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ec98dbdc
authored
Apr 20, 2021
by
周海宝
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev' into 'master'
[+]产品名称修改 See merge request
!2
2 parents
a996076c
d05e3b9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/main/java/com/glsx/smart/service/impl/SmartSceneServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartSceneServiceImpl.java
View file @
ec98dbd
...
@@ -283,6 +283,7 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
...
@@ -283,6 +283,7 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
paramMap
.
put
(
"msgBody"
,
msg
);
paramMap
.
put
(
"msgBody"
,
msg
);
saveMegInfo
(
user_id
,
title
,
msg
);
saveMegInfo
(
user_id
,
title
,
msg
);
try
{
try
{
log
.
info
(
"通知入参{}"
,
JSONObject
.
toJSONString
(
paramMap
));
JSONObject
jsonObject
=
HttpUtil
.
sendPost
(
infoUrl
,
JSONObject
.
toJSONString
(
paramMap
),
new
HashMap
<>());
JSONObject
jsonObject
=
HttpUtil
.
sendPost
(
infoUrl
,
JSONObject
.
toJSONString
(
paramMap
),
new
HashMap
<>());
if
(
jsonObject
!=
null
)
{
if
(
jsonObject
!=
null
)
{
String
code
=
jsonObject
.
get
(
"code"
)
+
""
;
String
code
=
jsonObject
.
get
(
"code"
)
+
""
;
...
@@ -347,6 +348,7 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
...
@@ -347,6 +348,7 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
paramMap
.
put
(
"msgBody"
,
context
);
paramMap
.
put
(
"msgBody"
,
context
);
saveMegInfo
(
user_id
,
title
,
context
);
saveMegInfo
(
user_id
,
title
,
context
);
try
{
try
{
log
.
info
(
"通知入参{}"
,
JSONObject
.
toJSONString
(
paramMap
));
JSONObject
jsonObject
=
HttpUtil
.
sendPost
(
infoUrl
,
JSONObject
.
toJSONString
(
paramMap
),
new
HashMap
<>());
JSONObject
jsonObject
=
HttpUtil
.
sendPost
(
infoUrl
,
JSONObject
.
toJSONString
(
paramMap
),
new
HashMap
<>());
if
(
jsonObject
!=
null
)
{
if
(
jsonObject
!=
null
)
{
String
code
=
jsonObject
.
get
(
"code"
)
+
""
;
String
code
=
jsonObject
.
get
(
"code"
)
+
""
;
...
@@ -357,7 +359,6 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
...
@@ -357,7 +359,6 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
}
}
}
}
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
log
.
info
(
"下发通知异常{}"
,
e
);
log
.
info
(
"下发通知异常{}"
,
e
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment