Commit 87a99bcc4d2068b3e38838347f3083fac2b301ba
1 parent
5e80bac8fb
Exists in
master
and in
8 other branches
code update
Showing 2 changed files with 18 additions and 11 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
87a99bc
... | ... | @@ -623,6 +623,7 @@ |
623 | 623 | smsList.setTypeId(ProjectTypeEnums.YNXT.getId()); |
624 | 624 | smsList.setMessages(messages); |
625 | 625 | if (!syncDataService.savePostMsg(JsonUtil.obj2JsonString(smsList), messages.get(0).getExt1())) { |
626 | + ExceptionUtils.catchException("儿童建档3---------->"+babyModel.getMphone()+";name="+babyModel.getName()); | |
626 | 627 | MessageCenterService.saveSmsCenter(smsList); |
627 | 628 | } |
628 | 629 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/MessageCenterService.java
View file @
87a99bc
... | ... | @@ -2,10 +2,7 @@ |
2 | 2 | |
3 | 3 | |
4 | 4 | import com.lyms.platform.common.enums.ProjectTypeEnums; |
5 | -import com.lyms.platform.common.utils.HttpRequest; | |
6 | -import com.lyms.platform.common.utils.JsonUtil; | |
7 | -import com.lyms.platform.common.utils.PropertiesUtils; | |
8 | -import com.lyms.platform.common.utils.StringUtils; | |
5 | +import com.lyms.platform.common.utils.*; | |
9 | 6 | import com.lyms.platform.operate.web.request.MessageListRequest; |
10 | 7 | import com.lyms.platform.operate.web.request.MessageRequest; |
11 | 8 | import com.lyms.platform.operate.web.result.Config; |
12 | 9 | |
13 | 10 | |
... | ... | @@ -54,15 +51,24 @@ |
54 | 51 | */ |
55 | 52 | public static boolean saveSmsCenter(MessageListRequest list) |
56 | 53 | { |
57 | - String json = JsonUtil.obj2Str(list); | |
58 | - String result = HttpRequest.sendPost(CENTER_BASE_URL+"saveCreatedSMS", json, CENTER_TOKEN); | |
59 | - if (StringUtils.isNotEmpty(result)) | |
60 | - { | |
61 | - Map<String,String> map = JsonUtil.str2Obj(result, Map.class); | |
62 | - if ("0".equals(map.get("errorcode"))) | |
54 | + String json = ""; | |
55 | + try{ | |
56 | + json = JsonUtil.obj2Str(list); | |
57 | + String result = HttpRequest.sendPost(CENTER_BASE_URL+"saveCreatedSMS", json, CENTER_TOKEN); | |
58 | + ExceptionUtils.catchException("儿童建档4---------->"+ json); | |
59 | + ExceptionUtils.catchException("儿童建档5---------->result"+ result); | |
60 | + if (StringUtils.isNotEmpty(result)) | |
63 | 61 | { |
64 | - return true; | |
62 | + Map<String,String> map = JsonUtil.str2Obj(result, Map.class); | |
63 | + if ("0".equals(map.get("errorcode"))) | |
64 | + { | |
65 | + return true; | |
66 | + } | |
65 | 67 | } |
68 | + } | |
69 | + catch (Exception e) | |
70 | + { | |
71 | + ExceptionUtils.catchException(e,"保存短信中心异常"+json); | |
66 | 72 | } |
67 | 73 | return false; |
68 | 74 | } |