清理代码。

This commit is contained in:
Kane Wang 2025-05-08 18:56:46 +08:00
parent 78c7a0d9a9
commit bbe1ee44c1

View File

@ -2,7 +2,7 @@
* @Author: Kane Wang <wangkane@qq.com>
* @Date: 2023-05-26 18:40:36
* @LastEditors: Kane Wang
* @LastModified: 2025-05-07 22:06:09
* @LastModified: 2025-05-08 18:55:36
* @FilePath: src/main/java/com/cpic/xim/utils/newcitizen/NewCitizenUitls.java
* @Description:
*
@ -10,28 +10,15 @@
*/
package com.cpic.xim.utils.newcitizen;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.http.HttpEntity;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils;
// import com.cdp.product.security.decode.CdpDecryptUtil;
// import com.cdp.product.security.encode.EncryptionUtils;
// import com.cdp.product.security.sign.CdpSignUtil;
import com.cpic.xim.utils.security.encode.EncryptionUtils;
import com.cpic.xim.utils.security.decode.DecryptionUtils;
import com.cpic.xim.utils.security.sign.SignUtils;
import com.cpic.xim.utils.http.HttpUtils;
import com.cpic.xim.utils.config.EncryptionParameters;
import com.cpic.xim.utils.http.HttpUtils;
import com.cpic.xim.utils.security.decode.DecryptionUtils;
import com.cpic.xim.utils.security.encode.EncryptionUtils;
import com.cpic.xim.utils.security.sign.SignUtils;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.ObjectMapper;
public class NewCitizenUitls
@ -88,39 +75,6 @@ public class NewCitizenUitls
return identifyResult;
}
// public static String sendPost( String url, Map<String, String> bodyMap )
// {
// HttpPost post = new HttpPost( url );
// try
// {
// // 创建参数集合
// List<BasicNameValuePair> list = new ArrayList<>();
// // 添加参数
// if ( bodyMap != null )
// {
// for ( String str : bodyMap.keySet() )
// {
// list.add( new BasicNameValuePair( str, bodyMap.get( str ) ) );
// }
// }
// // 把参数放入请求对象post发送的参数list指定格式
// post.setEntity( new UrlEncodedFormEntity( list, "UTF-8" ) );
// CloseableHttpClient client = HttpClients.createDefault();
// // 启动执行请求并获得返回值
// CloseableHttpResponse response = client.execute( post );
// // 得到返回的entity对象
// HttpEntity entity = response.getEntity();
// // 把实体对象转换为string
// return EntityUtils.toString( entity, "UTF-8" );
// }
// catch ( Exception e1 )
// {
// e1.printStackTrace();
// return "";
// }
// }
}