优化易方达接口
This commit is contained in:
+2
-2
@@ -61,7 +61,7 @@ try {
|
||||
|
||||
// 6. 使用 ExcelUtils.multiThreadingModify 多线程调用接口
|
||||
println "\n开始多线程测试接口..."
|
||||
println "接口地址:http://localhost:9180/efund/match"
|
||||
println "接口地址:http://open.fangjia.com/efund/match"
|
||||
println "线程数:CPU核心数 × 4 = ${Runtime.getRuntime().availableProcessors() * 4}"
|
||||
|
||||
ExcelUtils.multiThreadingModify(outputFile, { List row ->
|
||||
@@ -79,7 +79,7 @@ try {
|
||||
params.put("city", city)
|
||||
}
|
||||
|
||||
String response = request.get("http://localhost:9180/efund/match", params, "UTF-8")
|
||||
String response = request.get("http://open.fangjia.com/efund/match", params, "UTF-8")
|
||||
long duration = System.currentTimeMillis() - startTime
|
||||
|
||||
// 解析响应
|
||||
|
||||
+1
@@ -392,6 +392,7 @@ public class EfundMatchServiceImpl implements EfundMatchService {
|
||||
}
|
||||
try {
|
||||
List<QueryParam> params = new ArrayList<QueryParam>();
|
||||
params.add(new QueryParam("cat", "office"));
|
||||
params.add(new QueryParam("city", city));
|
||||
params.add(new QueryParam("district", district));
|
||||
params.add(new QueryParam("name", name));
|
||||
|
||||
Reference in New Issue
Block a user