| | |
| | | public class PostMesDataUtils extends AbstractHandler<String> { |
| | | |
| | | public ReturnT<String> getMesData(String name,String URL,String mesPath, LinkedHashMap<String, Object> combParam){ |
| | | boolean success = false; |
| | | if(combParam != null){ |
| | | String response = ""; |
| | | boolean success = false; |
| | | try { |
| | | response = new HttpHandler.Builder() |
| | | .setUri(URL) |
| | |
| | | //上报失败 |
| | | log.error("请求接口失败!!!url:{};request:{};response:{}", URL+"/"+mesPath, JSON.toJSONString(combParam), response); |
| | | // throw new CoolException("上报"+name); |
| | | success = false; |
| | | } |
| | | // if (jsonObject.getInteger("code").equals(200) || jsonObject.getInteger("Code").equals(200)) { |
| | | // |
| | |
| | | log.error("", e); } |
| | | } |
| | | } |
| | | if (!success){ |
| | | return FAIL.setMsg("上報失敗"); |
| | | } |
| | | return SUCCESS; |
| | | } |
| | | } |