Prechádzať zdrojové kódy

V1.1.2 自动投放 增加程序化创意创建

yumeng 4 rokov pred
rodič
commit
557ef0f0b6

+ 0 - 13
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouProgramCreativeServiceImpl.java

@@ -122,8 +122,6 @@ public class KuaishouProgramCreativeServiceImpl extends ServiceImpl<KuaishouProg
 
         JSONObject returnJson = new JSONObject();
         try {
-
-
             JSONObject pramsJson = new JSONObject();
             pramsJson.put("advertiser_id", oauthToken.getAccountId());
             pramsJson.put("unit_id", requestJson.getLong("unitId"));
@@ -134,7 +132,6 @@ public class KuaishouProgramCreativeServiceImpl extends ServiceImpl<KuaishouProg
             if (!Check.isNull(requestJson.getLong("siteId"))) {
                 pramsJson.put("site_id", requestJson.getLong("siteId"));
             }
-
             if (!Check.isNull(requestJson.getJSONArray("stickerStyles"))) {
                 pramsJson.put("sticker_styles", requestJson.getJSONArray("stickerStyles"));
             }
@@ -166,14 +163,12 @@ public class KuaishouProgramCreativeServiceImpl extends ServiceImpl<KuaishouProg
             JSONArray cover_image_tokens = new JSONArray();
             requestJson.remove(coverImageTokens);
             if (!Check.isNull(coverImageTokens)) {
-
                 for (int i = 0; i < coverImageTokens.size(); i++) {
                     String signature = coverImageTokens.getString(i);
                     if (Check.isNull(signature)) {
                         continue;
                     }
                     String imageToken = null;
-
                     if (!Check.isNull(signature)) {
                         QueryWrapper<KuaiShouImageGet> queryWrapper = new QueryWrapper<>();
                         queryWrapper.eq("account_id", oauthToken.getAccountId());
@@ -188,15 +183,9 @@ public class KuaishouProgramCreativeServiceImpl extends ServiceImpl<KuaishouProg
                         }
                         cover_image_tokens.add(imageToken);
                     }
-
-
                 }
-
-
             }
-
             pramsJson.put("cover_image_tokens", cover_image_tokens);
-
             String result = HttpUtils.kuaiShouhttpPostRequest(url, pramsJson.toJSONString(), headers);
             JSONObject jsonObject = JSONObject.parseObject(result);
             log.info("创建程序化创意返回结果:{}", jsonObject);
@@ -220,8 +209,6 @@ public class KuaishouProgramCreativeServiceImpl extends ServiceImpl<KuaishouProg
             returnJson.put("message", "系统错误");
 
         }
-
-
         return returnJson;
     }