|
@@ -39,7 +39,9 @@ public class AdvController {
|
|
|
try {
|
|
try {
|
|
|
String sourceType = request.getHeader("sourcetype");
|
|
String sourceType = request.getHeader("sourcetype");
|
|
|
if(StringUtils.isNotBlank(sourceType)){
|
|
if(StringUtils.isNotBlank(sourceType)){
|
|
|
- list = list.stream().filter(item->!item.getAdvTitle().equals("app下载")).collect(Collectors.toList());
|
|
|
|
|
|
|
+ list = list.stream().filter(item->(item.getShowType() == 4)).collect(Collectors.toList());
|
|
|
|
|
+ } else {
|
|
|
|
|
+ list = list.stream().filter(item->(item.getShowType() != 4)).collect(Collectors.toList());
|
|
|
}
|
|
}
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
log.error("获取首页广告位,获取header报错:{}",e.getMessage());
|
|
log.error("获取首页广告位,获取header报错:{}",e.getMessage());
|