Browse Source

添加修改爬虫页面缓存

syh 5 years ago
parent
commit
0d5eee1295

+ 19 - 15
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/service/impl/CreateInternalServiceImpl.java

@@ -504,31 +504,35 @@ public class CreateInternalServiceImpl implements ICreateInternalService {
                             BytedanceCreativeLaunchTemplate launchTemplate = launchTemplateMapper.selectById(creativeTemplateId);
                             data.put("ad_id", adId);
                             String advertiseLoaction = launchTemplate.getAdvertiseLocation();
-                            //优选广告位
-                            if (null != advertiseLoaction && advertiseLoaction.equals("great") && null != launchTemplate.getSmartInventory() && !"".equals(launchTemplate.getSmartInventory())) {
-                                data.put("smart_inventory", launchTemplate.getSmartInventory());
-                            }
-                            //按媒体指定位置
-                            if (null != advertiseLoaction && "media".equals(advertiseLoaction)) {
-                                String inventoryTypeStr = launchTemplate.getInventoryType();
-                                JSONArray inventoryType = JSONArray.parseArray(inventoryTypeStr);
-                                data.put("inventory_type", inventoryType);
-                            }
-                            //按场景指定位置
-                            if (null != advertiseLoaction && "sence".equals(advertiseLoaction)) {
-                                data.put("scene_inventory", launchTemplate.getSceneInventory());
+                            if (deliveryRange != 2) {
+                                //穿山甲
+                                //优选广告位
+                                if (null != advertiseLoaction && advertiseLoaction.equals("great") && null != launchTemplate.getSmartInventory() && !"".equals(launchTemplate.getSmartInventory())) {
+                                    data.put("smart_inventory", launchTemplate.getSmartInventory());
+                                }
+                                //按媒体指定位置
+                                if (null != advertiseLoaction && "media".equals(advertiseLoaction)) {
+                                    String inventoryTypeStr = launchTemplate.getInventoryType();
+                                    JSONArray inventoryType = JSONArray.parseArray(inventoryTypeStr);
+                                    data.put("inventory_type", inventoryType);
+                                }
+                                //按场景指定位置
+                                if (null != advertiseLoaction && "sence".equals(advertiseLoaction)) {
+                                    data.put("scene_inventory", launchTemplate.getSceneInventory());
+                                }
+                                //创意展现方式
+                                data.put("creative_display_mode", launchTemplate.getCreativeDisplayMode());
                             }
 
                             //广告评论
                             data.put("is_comment_disable", launchTemplate.getCommentDisable());
-                            //创意展现方式
-                            data.put("creative_display_mode", launchTemplate.getCreativeDisplayMode());
                             //创意分类
                             JSONArray categorys = JSONArray.parseArray(launchTemplate.getThirdIndustryId());
                             String thirdIndustryId = categorys.getString(2);
                             data.put("third_industry_id", thirdIndustryId);
                             //创意标签
                             data.put("ad_keywords", JSONArray.parseArray(launchTemplate.getAdKeywords()));
+
                             //创意标题
                             data.put("title", name + "_" + System.currentTimeMillis() + "_" + "汇创广告创意");