Commit baaa9af7fee7b6a72c36151f0dcd8f8ebe02caf4
1 parent
b7f85b735d
Exists in
master
and in
6 other branches
update code
Showing 1 changed file with 4 additions and 0 deletions
platform-msg-generate/src/main/java/com/lyms/platform/msg/remote/SaveMessageService.java
View file @
baaa9af
| ... | ... | @@ -14,6 +14,8 @@ |
| 14 | 14 | import net.sf.json.JSONArray; |
| 15 | 15 | import net.sf.json.JSONObject; |
| 16 | 16 | import org.apache.commons.httpclient.HttpClient; |
| 17 | +import org.slf4j.Logger; | |
| 18 | +import org.slf4j.LoggerFactory; | |
| 17 | 19 | |
| 18 | 20 | import java.util.*; |
| 19 | 21 | |
| ... | ... | @@ -22,6 +24,7 @@ |
| 22 | 24 | */ |
| 23 | 25 | public class SaveMessageService { |
| 24 | 26 | |
| 27 | + private static final Logger resultLog = LoggerFactory.getLogger("GEN-RESULT"); | |
| 25 | 28 | |
| 26 | 29 | /** |
| 27 | 30 | * 保存推送消息到消息中心 |
| ... | ... | @@ -31,6 +34,7 @@ |
| 31 | 34 | public static boolean saveMsgCenter(MessageListRequest list) |
| 32 | 35 | { |
| 33 | 36 | String json = JsonUtil.obj2JsonString(list); |
| 37 | + resultLog.info(json); | |
| 34 | 38 | String result = HttpClientUtil.doPostSSL(ConfigInterface.CENTER_BASE_URL+"/biz-push-web/push",json); |
| 35 | 39 | if (StringUtils.isNotEmpty(result)) |
| 36 | 40 | { |