添加Dockers文件
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ public class DistrictController {
|
|||||||
List<String> regions = districtService.getRegionByCity(model.getCityName());
|
List<String> regions = districtService.getRegionByCity(model.getCityName());
|
||||||
Map<String, List<DistrictBo>> map = openSearchService.parseResult(content, regions, model.getKeywords());
|
Map<String, List<DistrictBo>> map = openSearchService.parseResult(content, regions, model.getKeywords());
|
||||||
if(map.size() == 0){
|
if(map.size() == 0){
|
||||||
List<District> districts = districtService.findByKeyword(model.getCityName(), model.getKeywords());
|
List<District> districts = districtService.findByKeyword(model.getCityName(), model.getKeywords(), "district");
|
||||||
map = openSearchService.createResult(districts);
|
map = openSearchService.createResult(districts);
|
||||||
}
|
}
|
||||||
JsonModel ret = new JsonModel();
|
JsonModel ret = new JsonModel();
|
||||||
|
|||||||
@@ -200,27 +200,9 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(".tab-pane a, .hotcity a").click(function(){
|
$(".tab-pane a, .hotcity a").click(function(){
|
||||||
var cityName = this.innerHTML;
|
var cityName = this.innerHTML;
|
||||||
// var userName = '${loginUserName!}';
|
|
||||||
var name = this.name;
|
var name = this.name;
|
||||||
|
var url = 'http://geluke.fangjia.com/map/index?cityName='+encodeURIComponent(cityName)+"&t=" + new Date().getTime()
|
||||||
// if(cityName!='上海'&&userName=='xianlixiong'&&cityName!='北京'){
|
|
||||||
// cityName = '上海';
|
|
||||||
// name = 'sh';
|
|
||||||
// }
|
|
||||||
// if(cityName!='上海'&&userName=='pingping'){
|
|
||||||
// cityName = '上海';
|
|
||||||
// name = 'sh';
|
|
||||||
// }
|
|
||||||
// if((userName=='Angela'||userName=='jialun')&&cityName!='上海'&&cityName!='昆山'){
|
|
||||||
// cityName = '上海';
|
|
||||||
// name = 'sh';
|
|
||||||
// }
|
|
||||||
// $(".cityWidth").text(cityName);
|
|
||||||
|
|
||||||
var url = 'http://'+name+'.${domain}${root}/map/index?cityName='+encodeURIComponent(cityName)+"&t=" + new Date().getTime()
|
|
||||||
window.location.href = url;
|
window.location.href = url;
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user