Merge branch 'open_gj' into 'master'

去重缓存刷新,连接前缀修改

See merge request !26
This commit is contained in:
2021-05-08 13:39:47 +08:00
@@ -92,17 +92,14 @@ public class CcbRentController {
HttpRequest httpRequest = new HttpRequest();
try {
Map<String, String> headers = new HashMap<String, String>();
final String path = "http://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath();
String url = path + "/property/evaluateRent?token=" + APIConstant.SUPER_USER_TOKEN + "&__refresh_cache=1";
Map<String, String> params = new HashMap<String, String>();
params = org.apache.commons.beanutils.BeanUtils.describe(model);
//params.put("request", JsonUtils.httpParameterToJSONObject(request));
// &__refresh_cache=1 刷新缓存
String url = "http://open.fangjia.com/property/evaluateRent?token=" + APIConstant.SUPER_USER_TOKEN;
Map<String, String> params = org.apache.commons.beanutils.BeanUtils.describe(model);
result = httpRequest.post(url, params, headers,"UTF-8");
} catch (HttpRequestException e) {
e.printStackTrace();
} catch (NoSuchMethodException e) {
e.printStackTrace();
} catch (HttpRequestException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
}