WPS 查看功能增加水印参数调试

This commit is contained in:
zhangqinbin
2024-01-03 09:36:20 +08:00
parent cdedd387b6
commit 975b342564
2 changed files with 10 additions and 3 deletions

View File

@ -607,9 +607,15 @@ public class WpsServiceImpl implements WpsService {
dataJson = JSON.toJSONString(vo); 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); log.info("ret:"+retJson);
//String retJson = HttpUtils.httpPost(kswpsurl,json);
KingSoftWpsRet ret = JSON.parseObject(retJson,KingSoftWpsRet.class); KingSoftWpsRet ret = JSON.parseObject(retJson,KingSoftWpsRet.class);

View File

@ -104,6 +104,7 @@ public class HttpsUtils {
return str; return str;
} }
private static class TrustAnyTrustManager implements X509TrustManager { private static class TrustAnyTrustManager implements X509TrustManager {
@Override @Override
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException { public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {