zhaohaipeng 6 mesi fa
parent
commit
6168aa55ac

+ 0 - 7
ad-engine-server/src/main/java/com/tzld/piaoquan/ad/engine/server/controller/AdRecommendController.java

@@ -29,13 +29,6 @@ public class AdRecommendController {
     public Map<String, Object> adRecommendTop1Basic(@RequestBody RankRecommendRequestParam request) {
         Map<String, Object> map = new HashMap<>();
 
-        List<AdPlatformCreativeDTO> adIdList = request.getAdIdList();
-        if (adIdList.size() > 5) {
-            List<AdPlatformCreativeDTO> newAdIdList = new ArrayList<>(5);
-            newAdIdList.add(adIdList.get(0));
-            request.setAdIdList(newAdIdList);
-        }
-
         if (CollectionUtils.isEmpty(request.getAdIdList())) {
             map.put("code", "1");
             map.put("msg", "score error");