|
@@ -315,12 +315,23 @@ public class AiBytedanceAdvertiserStrategyController {
|
|
|
@GetMapping("testCreateCreativeLimit")
|
|
|
public Map<String, Object> testCreateCreativeLimit(Long accountId, Integer hour) {
|
|
|
Map<String, Object> result = new HashMap<>();
|
|
|
- AiBytedanceAdvertiserStrategy strategy = aiBytedanceAdvertiserStrategyService.getByAccountId(accountId,0);
|
|
|
- if (strategy == null) {
|
|
|
+ List<AiBytedanceAdvertiserStrategy> strategys = aiBytedanceAdvertiserStrategyService.getByAccountId(accountId,0);
|
|
|
+// aiBytedanceAdvertiserStrategyService.customCreativeSupplement(strategy, hour);
|
|
|
+ ResultMapUtils.setResultMap(result, StatusCode.COMMON_SUCCESS);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("autoCreateCreative")
|
|
|
+ public Map<String, Object> autoCreateCreative(Integer hour) {
|
|
|
+ Map<String, Object> result = new HashMap<>();
|
|
|
+ List<AiBytedanceAdvertiserStrategy> strategys = aiBytedanceAdvertiserStrategyService.getByAccountId(null,0);
|
|
|
+ if (strategys == null||strategys.isEmpty()) {
|
|
|
ResultMapUtils.setResultMap(result, StatusCode.COMMON_PARAM_ERROR);
|
|
|
return result;
|
|
|
}
|
|
|
- aiBytedanceAdvertiserStrategyService.customCreativeSupplement(strategy, hour);
|
|
|
+ strategys.forEach(strategy -> {
|
|
|
+ aiBytedanceAdvertiserStrategyService.customCreativeSupplement(strategy, hour);
|
|
|
+ });
|
|
|
ResultMapUtils.setResultMap(result, StatusCode.COMMON_SUCCESS);
|
|
|
return result;
|
|
|
}
|
|
@@ -331,17 +342,16 @@ public class AiBytedanceAdvertiserStrategyController {
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @description:根据下载链接获取应用包名
|
|
|
+ * 根据下载链接获取应用包名
|
|
|
*
|
|
|
* @param downloadType 类型
|
|
|
* @param urlPath 下载链接
|
|
|
- * @return: org.jeecg.common.api.vo.Result
|
|
|
- * @author: zianY
|
|
|
+ * @return org.jeecg.common.api.vo.Result
|
|
|
+ * @author zianY
|
|
|
*/
|
|
|
@ApiOperation(value="根据下载链接获取应用包名", notes="根据下载链接获取应用包名")
|
|
|
@GetMapping(value = "/getPackageNameByUrl")
|
|
|
public Result getPackageNameByUrl(@RequestParam("downloadType") String downloadType,@RequestParam("urlPath") String urlPath) {
|
|
|
-
|
|
|
try {
|
|
|
Map map = new HashMap();
|
|
|
//根据下载链接上传附件
|