Commit 58f3f0e0ca5c5fd394ef9718d697813344e9745a

Authored by liquanyu
1 parent f6e0cbe880

update code

Showing 4 changed files with 4 additions and 0 deletions

platform-operate-api/pom.xml View file @ 58f3f0e
... ... @@ -16,6 +16,7 @@
16 16 <artifactId>httpclient</artifactId>
17 17 <version>4.5.2</version>
18 18 </dependency>
  19 +
19 20 <dependency>
20 21 <groupId>commons-httpclient</groupId>
21 22 <artifactId>commons-httpclient</artifactId>
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/SyncDataTaskService.java View file @ 58f3f0e
... ... @@ -134,6 +134,7 @@
134 134 public void qhdfySyncDataSSL() {
135 135  
136 136 try{
  137 +
137 138 StringBuffer ids = new StringBuffer();
138 139 String json = HttpClientUtil.doPost("https://area-qhd-api.healthbaby.com.cn:18019/findSyncData", new HashMap<String, String>(), "utf-8");
139 140 if (com.lyms.platform.common.utils.StringUtils.isNotEmpty(json))
platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/HttpClientUtil.java View file @ 58f3f0e
... ... @@ -18,6 +18,7 @@
18 18 * 利用HttpClient进行post请求的工具类
19 19 */
20 20 public class HttpClientUtil {
  21 +
21 22 public static String doPost(String url,Map<String,String> map,String charset){
22 23 HttpClient httpClient = null;
23 24 HttpPost httpPost = null;
platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/SSLClient.java View file @ 58f3f0e
... ... @@ -12,6 +12,7 @@
12 12 import org.apache.http.impl.client.DefaultHttpClient;
13 13 //用于进行Https请求的HttpClient
14 14 public class SSLClient extends DefaultHttpClient{
  15 +
15 16 public SSLClient() throws Exception{
16 17 super();
17 18 SSLContext ctx = SSLContext.getInstance("TLS");