yumeng hace 4 años
padre
commit
613f74fa7b

+ 1 - 3
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouInterfaceServiceImpl.java

@@ -2106,7 +2106,6 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
             Map<String, String> header = new HashMap<String, String>();
             header.put("Content-Type", " application/json");
             header.put("Access-Token", accessToken);
-
             String result = HttpUtils.kuaiShouhttpPostRequest(url, requestJson.toJSONString(), header);
             JSONObject resultJson = JSONObject.parseObject(result);
             log.info("快手创建创意返回:accountId:{},返回结果{}", advertiserId, resultJson);
@@ -2140,9 +2139,8 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
                     }
                 } else {
                     if (code == 500000 && count <= 4) {
-                        creativeCreate(accessToken, advertiserId, requestJson, count + 1);
+                        batchCreativeCreate(accessToken, advertiserId, requestJson, count + 1, userId);
                     }
-
                     if (code == 400001 && "/rest/openapi/v2/creative/batch/update调用已超日限,次日可恢复调用".equals(resultJson.getString("message"))) {
                         overRunSendMessageService.creativeOverRunSendMessage(advertiserId, userId);
                     }