Merge branch 'open_gj' into 'master'
去重缓存刷新,连接前缀修改 See merge request !26
This commit is contained in:
+5
-8
@@ -92,17 +92,14 @@ public class CcbRentController {
|
|||||||
HttpRequest httpRequest = new HttpRequest();
|
HttpRequest httpRequest = new HttpRequest();
|
||||||
try {
|
try {
|
||||||
Map<String, String> headers = new HashMap<String, String>();
|
Map<String, String> headers = new HashMap<String, String>();
|
||||||
|
// &__refresh_cache=1 刷新缓存
|
||||||
final String path = "http://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath();
|
String url = "http://open.fangjia.com/property/evaluateRent?token=" + APIConstant.SUPER_USER_TOKEN;
|
||||||
String url = path + "/property/evaluateRent?token=" + APIConstant.SUPER_USER_TOKEN + "&__refresh_cache=1";
|
Map<String, String> params = org.apache.commons.beanutils.BeanUtils.describe(model);
|
||||||
Map<String, String> params = new HashMap<String, String>();
|
|
||||||
params = org.apache.commons.beanutils.BeanUtils.describe(model);
|
|
||||||
//params.put("request", JsonUtils.httpParameterToJSONObject(request));
|
|
||||||
result = httpRequest.post(url, params, headers,"UTF-8");
|
result = httpRequest.post(url, params, headers,"UTF-8");
|
||||||
} catch (HttpRequestException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
} catch (NoSuchMethodException e) {
|
} catch (NoSuchMethodException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
} catch (HttpRequestException e) {
|
||||||
|
e.printStackTrace();
|
||||||
} catch (InvocationTargetException e) {
|
} catch (InvocationTargetException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user