+1
@@ -1057,6 +1057,7 @@ public class WeiXinEvaluationController {
|
||||
}
|
||||
} catch (IOException e) {
|
||||
//处理异常信息
|
||||
System.out.println(e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,27 +2,15 @@ package com.fangjia.open.util;
|
||||
|
||||
import com.fangjia.core.util.HttpRequest;
|
||||
import com.fangjia.core.util.MD5Util;
|
||||
import com.fangjia.core.util.MultipartUtility;
|
||||
import com.fangjia.dal.sql.model.FjtEvaluation;
|
||||
import com.fangjia.dal.sql.model.UsersDetail;
|
||||
import com.fangjia.open.model.weixin.EvaluationModel;
|
||||
import com.mashape.unirest.http.HttpResponse;
|
||||
import com.mashape.unirest.http.Unirest;
|
||||
import com.mashape.unirest.request.HttpRequestWithBody;
|
||||
import com.yeepay.shade.org.apache.http.entity.mime.MultipartEntityBuilder;
|
||||
import net.sf.json.JSONArray;
|
||||
import net.sf.json.JSONObject;
|
||||
import okhttp3.*;
|
||||
import org.apache.commons.collections.map.MultiValueMap;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.http.HttpHeaders;
|
||||
import org.apache.http.client.methods.HttpPost;
|
||||
import org.apache.http.impl.client.CloseableHttpClient;
|
||||
import org.apache.http.impl.client.HttpClients;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLEncoder;
|
||||
import java.util.*;
|
||||
@@ -58,8 +46,11 @@ public class BHBankUtils {
|
||||
}};
|
||||
|
||||
public static List<JSONObject> getDistrictByBhbank(String address){
|
||||
|
||||
List<JSONObject> list = new ArrayList<JSONObject>();
|
||||
try {
|
||||
|
||||
// Thread.sleep(20*1000);
|
||||
|
||||
Map params = new HashMap();
|
||||
params.put("keyword",address);
|
||||
|
||||
@@ -73,7 +64,6 @@ public class BHBankUtils {
|
||||
headers.put("nonce", nonce.toString());
|
||||
HttpRequest request = new HttpRequest();
|
||||
String content = null;
|
||||
try {
|
||||
content = request.get(uri +"/searchAddr/bh/", params, headers, "utf-8");
|
||||
System.out.println("/searchAddr/bh/ :"+content);
|
||||
if(StringUtils.isNotBlank(content)){
|
||||
|
||||
Reference in New Issue
Block a user