Commit 97545ae67b61c7cc4078bf274234114eef0f2728

Authored by 潘钊
1 parent c45e7392

update...

src/main/java/com/bsth/data/directive/GatewayHttpUtils.java
@@ -51,13 +51,13 @@ public class GatewayHttpUtils { @@ -51,13 +51,13 @@ public class GatewayHttpUtils {
51 51
52 post.setEntity(new StringEntity(jsonStr, "utf-8")); 52 post.setEntity(new StringEntity(jsonStr, "utf-8"));
53 53
54 -// CloseableHttpResponse response = httpClient.execute(post);  
55 -//  
56 -// JSONObject json = JSONObject.parseObject(EntityUtils.toString(response.getEntity()));  
57 -// if(null != json && json.getInteger("errCode") == 0)  
58 -// code = 0;  
59 -// else  
60 -// logger.error("和网关http通讯失败,rs: " + json); 54 + CloseableHttpResponse response = httpClient.execute(post);
  55 +
  56 + JSONObject json = JSONObject.parseObject(EntityUtils.toString(response.getEntity()));
  57 + if(null != json && json.getInteger("errCode") == 0)
  58 + code = 0;
  59 + else
  60 + logger.error("和网关http通讯失败,rs: " + json);
61 }catch(Exception e){ 61 }catch(Exception e){
62 logger.error("", e); 62 logger.error("", e);
63 }finally { 63 }finally {