Commit ec98dbdc by 周海宝

Merge branch 'dev' into 'master'

[+]产品名称修改

See merge request !2
2 parents a996076c d05e3b9e
...@@ -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);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!