ソースを参照

更新创建时间

songyh 3 年 前
コミット
1e2ec91a1e

+ 10 - 7
jeecg-boot-bytedance/src/main/java/org/jeecg/modules/bytedance/advertise/dockapi/MarketingServiceImpl.java

@@ -717,6 +717,9 @@ public class MarketingServiceImpl implements MarketingService{
         //params.put("operation", BytedanceConstant.OPERATION_ENABLE);
         //params.put("operation", BytedanceConstant.OPERATION_ENABLE);
         // 投放范围  "DEFAULT"默认, "UNION"穿山甲
         // 投放范围  "DEFAULT"默认, "UNION"穿山甲
         params.put("delivery_range", strategy.getAdDeliveryRange() == null ? "DEFAULT" : strategy.getAdDeliveryRange());
         params.put("delivery_range", strategy.getAdDeliveryRange() == null ? "DEFAULT" : strategy.getAdDeliveryRange());
+        if(null!=strategy.getAdDownloadUrl()&&!"".equals(strategy.getAdDownloadUrl().trim())){
+            params.put("download_url", strategy.getAdDownloadUrl());
+        }
         //投放形式(穿山甲视频创意类型) 当delivery_range为"UNION"时必填
         //投放形式(穿山甲视频创意类型) 当delivery_range为"UNION"时必填
         // 允许值: "ORIGINAL_VIDEO"原生, "REWARDED_VIDEO"激励视频,"SPLASH_VIDEO"开屏
         // 允许值: "ORIGINAL_VIDEO"原生, "REWARDED_VIDEO"激励视频,"SPLASH_VIDEO"开屏
         // params.put("union_video_type", byteDanceAdvertisePlan.getUnionVideoType() == null ? "ORIGINAL_VIDEO" : byteDanceAdvertisePlan.getUnionVideoType());
         // params.put("union_video_type", byteDanceAdvertisePlan.getUnionVideoType() == null ? "ORIGINAL_VIDEO" : byteDanceAdvertisePlan.getUnionVideoType());
@@ -727,13 +730,13 @@ public class MarketingServiceImpl implements MarketingService{
             params.put("download_type", strategy.getAdDownloadType());
             params.put("download_type", strategy.getAdDownloadType());
             //下载链接
             //下载链接
             // 类型为下载链接
             // 类型为下载链接
-            if ("DOWNLOAD_URL".equals(strategy.getAdDownloadType())){
-                params.put("download_url", strategy.getAdDownloadUrl());
-                //下载的应用类型,当download_type为DOWNLOAD_URL时必填
-                //允许值: "APP_ANDROID"Android APP, "APP_IOS"IOS APP
-                params.put("app_type", strategy.getAdAppType());
-                params.put("package", strategy.getAdPackage());
-            }
+//            if ("DOWNLOAD_URL".equals(strategy.getAdDownloadType())){
+//                params.put("download_url", strategy.getAdDownloadUrl());
+//                //下载的应用类型,当download_type为DOWNLOAD_URL时必填
+//                //允许值: "APP_ANDROID"Android APP, "APP_IOS"IOS APP
+//                params.put("app_type", strategy.getAdAppType());
+//                params.put("package", strategy.getAdPackage());
+//            }
             // 类型为 快应用+下载链接
             // 类型为 快应用+下载链接
             if ("QUICK_APP_URL".equals(strategy.getAdDownloadType())){
             if ("QUICK_APP_URL".equals(strategy.getAdDownloadType())){
                 params.put("quick_app_url", strategy.getAdDownloadUrl());
                 params.put("quick_app_url", strategy.getAdDownloadUrl());

+ 0 - 8
jeecg-boot-module-system/src/main/java/org/jeecg/modules/bytedance/advertise/controller/BytedanceReportController.java

@@ -203,14 +203,6 @@ public class BytedanceReportController {
 				if (!resultUpd.isSuccess()){
 				if (!resultUpd.isSuccess()){
 					return Result.errorMsg(resultUpd.getMessage());
 					return Result.errorMsg(resultUpd.getMessage());
 				}
 				}
-				ByteDanceAdvertisePlan byteDanceAdvertisePlan = new ByteDanceAdvertisePlan();
-				byteDanceAdvertisePlan.setId(Long.valueOf(adId));
-				byteDanceAdvertisePlan.setCpaBid(cpaBid);
-				byteDanceAdvertisePlan.setScheduleTime(adScheduleTime);
-				//byteDanceAdvertisePlan.setBudgetMode(budgetMode);
-				byteDanceAdvertisePlan.setBudget(Check.isNull(budget) ? null : new BigDecimal(budget));
-				//更新 表 bid || 定向包id || 状态
-				byteDanceAdvertisePlanService.updatePlanOrPackage(byteDanceAdvertisePlan);
 			}
 			}
 
 
 			return Result.successMsg("修改出价成功。",null);
 			return Result.successMsg("修改出价成功。",null);