默认房源数量改成5个
This commit is contained in:
+2
-1
@@ -178,6 +178,7 @@ public class PropertyController {
|
||||
|
||||
private FileDao fileDao = FileDao.getInstance();
|
||||
private static final int DEFAULT_PAGE_SIZE = 20;
|
||||
private static final int DEFAULT_HOUSE_COUNT = 5;
|
||||
private static final String[] PROPERTY_SEARCH_API_FIELDS = {"address", "city", "region", "name", "lat2", "lng2", "lat", "lng", "block", "estateType2", "addrAlias", "alias"};
|
||||
static final int BAI_DU_GEO = 1;// °Ù¶ÈÏµ×ø±ê
|
||||
static final int GAO_DE_GEO = 2;// ¸ßµÂÏµ×ø±ê
|
||||
@@ -2780,7 +2781,7 @@ public class PropertyController {
|
||||
return mav;
|
||||
}
|
||||
if (model.getMax() == null || model.getMax() < 1) {
|
||||
model.setMax(DEFAULT_PAGE_SIZE);
|
||||
model.setMax(DEFAULT_HOUSE_COUNT);
|
||||
} else if (model.getMax() > 100) {
|
||||
model.setMax(100);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user