Commit 1d29ef8aca9787419a9666fa6afae33d0629c55b

Authored by liquanyu
1 parent 439ec51e77

update code

Showing 1 changed file with 3 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/MessageCenterService.java View file @ 1d29ef8
... ... @@ -105,12 +105,14 @@
105 105 String json = "";
106 106 try{
107 107 json = JsonUtil.obj2Str(list);
108   - String result = HttpRequest.sendPost(CENTER_BASE_URL+"/biz-push-web/push", json, CENTER_TOKEN);
  108 + String result = HttpClientUtil.doPostSSL(CENTER_BASE_URL+"/biz-push-web/push", json);
  109 + System.out.println("======="+result);
109 110 if (StringUtils.isNotEmpty(result))
110 111 {
111 112 Map<String,Integer> map = JsonUtil.str2Obj(result, Map.class);
112 113 if ("0".equals(map.get("errorcode").toString()))
113 114 {
  115 + System.out.println("successs");
114 116 return true;
115 117 }
116 118 }