更新服务地址

This commit is contained in:
王文艳
2026-05-18 16:54:30 +08:00
parent 77839da70e
commit a6d58b7745
80 changed files with 302 additions and 267 deletions
@@ -599,7 +599,7 @@ public class AddressMatchProxyServiceImpl extends AbstractHttpApiService impleme
params.put("city", city);
params.put("address", address);
try {
json = request.getJsonContent("http://192.168.0.100:32080/FangJiaAddressService/formatNinelevel", params, "UTF-8");
json = request.getJsonContent("http://192.168.0.80:32080/FangJiaAddressService/formatNinelevel", params, "UTF-8");
if (json != null && json.containsKey("msgCode") && json.getInt("msgCode") == 200) {
if (json.containsKey("result")) {
return (JSONObject) json.get("result");
@@ -879,10 +879,10 @@ public class AddressMatchProxyServiceImpl extends AbstractHttpApiService impleme
params.put("useMap", String.valueOf(useMap));
try {
json = request.getJsonContent("http://192.168.0.100:32080/FangJiaNlpService/match", params, "UTF-8");
json = request.getJsonContent("http://192.168.0.80:32080/FangJiaNlpService/match", params, "UTF-8");
} catch (Exception e) {
try {
json = request.getJsonContent("http://192.168.0.100:32080/FangJiaNlpService/match", params, "UTF-8");
json = request.getJsonContent("http://192.168.0.80:32080/FangJiaNlpService/match", params, "UTF-8");
} catch (Exception ex) {
ex.printStackTrace();
}
@@ -33,7 +33,7 @@ public class InvokeHttpRequest {
static boolean useProxy = true;
static String[] PROXY_HOSTS = new String[] { "192.168.0.98", "192.168.0.102", "192.168.0.96", "192.168.0.101",
"192.168.0.103", "192.168.0.90", "192.168.0.93", "192.168.0.99", "192.168.0.94", "192.168.0.100" };
"192.168.0.103", "192.168.0.90", "192.168.0.93", "192.168.0.99", "192.168.0.94", "192.168.0.80" };
// static int PROXY_USE_COUNT=0;
static AtomicInteger PROXY_USE_COUNT = new AtomicInteger();
@@ -149,7 +149,7 @@ public class EfundMatchServiceImpl implements EfundMatchService {
param.put("location", location);
param.put("area", "100");
try {
json = httpRequest.getJsonContent("http://192.168.0.100:30020/avmWeb/avmAnn", param, "UTF-8");
json = httpRequest.getJsonContent("http://192.168.0.80:30020/avmWeb/avmAnn", param, "UTF-8");
if (json.containsKey("msg") && "成功".equals(json.getString("msg"))) {
result.put("residential 1km _price", json.getInt("unitPrice"));
result.append("update_time", DateUtil.formatByPattern(DateUtil.getFirstDayOfWeek(new Date()), "yyyy-MM-dd"));
@@ -169,7 +169,7 @@ public class EfundMatchServiceImpl implements EfundMatchService {
param.put("location", location);
param.put("area", "100");
try {
json = httpRequest.getJsonContent("http://192.168.0.100:30020/avmWeb/avmAnn", param, "UTF-8");
json = httpRequest.getJsonContent("http://192.168.0.80:30020/avmWeb/avmAnn", param, "UTF-8");
if (json.containsKey("msg") && "成功".equals(json.getString("msg"))) {
result.put("residential_1km_price", json.getInt("unitPrice"));
result.append("update_time", DateUtil.formatByPattern(DateUtil.getFirstDayOfWeek(new Date()), "yyyy-MM-dd"));
@@ -338,7 +338,7 @@ public class EfundMatchServiceImpl implements EfundMatchService {
param.put("location", json.getString("gcj02"));
param.put("area", "100");
try {
JSONObject avmJson = httpRequest.getJsonContent("http://192.168.0.100:30020/avmWeb/avmAnn", param, "UTF-8");
JSONObject avmJson = httpRequest.getJsonContent("http://192.168.0.80:30020/avmWeb/avmAnn", param, "UTF-8");
if (avmJson.containsKey("msg") && "成功".equals(avmJson.getString("msg"))) {
result.put("residential_1km_price", avmJson.getInt("unitPrice"));
result.append("update_time", DateUtil.formatByPattern(DateUtil.getFirstDayOfWeek(new Date()), "yyyy-MM-dd"));