Explorar o código

更新创建时间

songyh %!s(int64=3) %!d(string=hai) anos
pai
achega
8b7632b802

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

@@ -738,7 +738,7 @@ public class MarketingServiceImpl implements MarketingService{
             if ("QUICK_APP_URL".equals(strategy.getAdDownloadType())){
                 params.put("quick_app_url", strategy.getAdDownloadUrl());
             }
-            // 类型为下载链接
+            // 类型为落地页链接
             if ("EXTERNAL_URL".equals(strategy.getAdDownloadType())){
                 params.put("external_url", strategy.getAdDownloadUrl());
             }

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

@@ -170,7 +170,8 @@ public class BytedanceReportController {
 									@RequestParam(value = "cpaBid",required = false) BigDecimal cpaBid,
 									@RequestParam(value = "adScheduleTime",required = false) String adScheduleTime,
 									//@RequestParam(value = "budgetMode",required = false) String budgetMode,
-									@RequestParam(value = "budget",required = false) Integer budget) {
+									@RequestParam(value = "budget",required = false) Integer budget,
+								 	@RequestParam(value = "downloadUrl",required = false) String downloadUrl) {
 		try {
 			CtopOauthToken token = tokenService.getOauthTokenByAccountId(accountId);
 			PlanSearchVo planSearchVo = new PlanSearchVo();
@@ -184,7 +185,6 @@ public class BytedanceReportController {
 			JSONObject jsonObject =JSONObject.parseObject(result.getResult().toString());
 			JSONArray array = jsonObject.getJSONArray("list");
 			List<Map<String,Object>> dataList = JSONArray.parseObject(array.toJSONString(),List.class);
-
 			for (Map<String, Object> map : dataList) {
 				//不需要传modifytime字段
 				//String modifyTime = map.get("modify_time").toString();
@@ -193,6 +193,9 @@ public class BytedanceReportController {
 				strategy.setAccountId(Long.valueOf(accountId));
 				strategy.setAdCpaBid(cpaBid);
 				strategy.setAdScheduleTime(adScheduleTime);
+				if(null!=downloadUrl&&downloadUrl.trim().equals("")){
+					strategy.setAdDownloadUrl(downloadUrl);
+				}
 				//strategy.setAdBudgetMode(budgetMode);
 				strategy.setAdBudget(budget);
 				//3 修改广告计划 中的 cpaBid