|
@@ -483,7 +483,13 @@ public class KuaishouBatchCreativePreviewServiceImpl extends ServiceImpl<Kuaisho
|
|
|
if (!Check.isNull(creativePreview.getCreativeTag())) {
|
|
|
createJson.put("creative_tag", JSONObject.parseArray(creativePreview.getCreativeTag())); // 创意标签
|
|
|
}
|
|
|
-
|
|
|
+ Integer outerLoopNative = creativePreview.getOuterLoopNative();
|
|
|
+ if (!Check.isNull(outerLoopNative)) {
|
|
|
+ createJson.put("outer_loop_native", outerLoopNative);
|
|
|
+ if (outerLoopNative == 1) {
|
|
|
+ createJson.put("kol_user_type", creativePreview.getKolUserType());
|
|
|
+ }
|
|
|
+ }
|
|
|
Map<String, Object> creativeMap = kuaishouInterfaceService.creativeCreate(oauthToken.getAccessToken(), oauthToken.getAccountId(), createJson, 1);
|
|
|
|
|
|
JSONObject returnJson = new JSONObject();
|
|
@@ -669,13 +675,6 @@ public class KuaishouBatchCreativePreviewServiceImpl extends ServiceImpl<Kuaisho
|
|
|
if (!Check.isNull(creativePreview.getCreativeTag())) {
|
|
|
createJson.put("creative_tag", JSONObject.parseArray(creativePreview.getCreativeTag())); // 创意标签
|
|
|
}
|
|
|
- Integer outerLoopNative = creativePreview.getOuterLoopNative();
|
|
|
- if (!Check.isNull(outerLoopNative)) {
|
|
|
- createJson.put("outer_loop_native", outerLoopNative);
|
|
|
- if (outerLoopNative == 1) {
|
|
|
- createJson.put("kol_user_type", creativePreview.getKolUserType());
|
|
|
- }
|
|
|
- }
|
|
|
Map<String, Object> creativeMap = this.createProgramCreatives(oauthToken.getAccountId(), oauthToken.getAccessToken(), createJson, 1);
|
|
|
JSONObject returnJson = new JSONObject();
|
|
|
Integer code = (Integer) creativeMap.get("code");
|