WPS 查看功能增加水印参数调试
This commit is contained in:
@ -607,9 +607,15 @@ public class WpsServiceImpl implements WpsService {
|
||||
|
||||
dataJson = JSON.toJSONString(vo);
|
||||
}
|
||||
String retJson = HttpUtils.httpPost(url, dataJson);//httpPost(kswpsurl,json);
|
||||
//String retJson = HttpUtils.httpPost(url, dataJson);//httpPost(kswpsurl,json);
|
||||
String retJson = "";
|
||||
if(url.indexOf("https://")>=0){
|
||||
retJson = HttpsUtils.UrlPost(url, "utf-8", dataJson);
|
||||
}else{
|
||||
retJson = HttpUtils.httpPost(url, dataJson);
|
||||
}
|
||||
|
||||
log.info("ret:"+retJson);
|
||||
//String retJson = HttpUtils.httpPost(kswpsurl,json);
|
||||
|
||||
KingSoftWpsRet ret = JSON.parseObject(retJson,KingSoftWpsRet.class);
|
||||
|
||||
|
@ -19,7 +19,7 @@ import java.util.Map;
|
||||
|
||||
@Slf4j
|
||||
public class HttpsUtils {
|
||||
|
||||
|
||||
public static String UrlPost(String url,String charSet, String json){
|
||||
return UrlPost(url,charSet,json,null);
|
||||
}
|
||||
@ -104,6 +104,7 @@ public class HttpsUtils {
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
private static class TrustAnyTrustManager implements X509TrustManager {
|
||||
@Override
|
||||
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {
|
||||
|
Reference in New Issue
Block a user