소스 검색

项目自动化调试

zhaoxian 4 년 전
부모
커밋
7cd59aa6c8

+ 3 - 3
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/ai/entity/AiKuaishouProgramCreativeLevelOperationRecord.java

@@ -30,15 +30,15 @@ public class AiKuaishouProgramCreativeLevelOperationRecord {
     /**
      * 账户ID
      */
-    private Integer accountId;
+    private Long accountId;
     /**
      * 广告计划ID
      */
-    private Integer campaignId;
+    private Long campaignId;
     /**
      * 广告组ID
      */
-    private Integer unitId;
+    private Long unitId;
     /**
      * 是否为便利贴,默认为0
      */

+ 2 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/ai/service/impl/AiKuaishouProjectCreateCreativeServiceImpl.java

@@ -483,6 +483,7 @@ public class AiKuaishouProjectCreateCreativeServiceImpl implements IAiKuaishouPr
         AiKuaishouProgramCreativeLevelOperationRecord record = JSONObject.parseObject(programJson.toJSONString(), AiKuaishouProgramCreativeLevelOperationRecord.class);
         BeanUtils.copyProperties(strategy, record);
         record.setStatus(code);
+        record.setAccountId(strategy.getAccountId());
         record.setAiStrategyUuid(strategy.getStrategyUuid());
         record.setMessage(message);
         record.setOperationType(1);
@@ -749,7 +750,7 @@ public class AiKuaishouProjectCreateCreativeServiceImpl implements IAiKuaishouPr
             //应用商店列表
             unitParams.put("ocpx_action_type", strategy.getOcpxActionType());
             //出价
-            if (null != strategy.getBid() && !"0".equals(strategy.getBid())) {
+            if (!Check.isNull(strategy.getBid()) && !"0".equals(strategy.getBid())) {
                 Long bid = getBidByString(strategy.getBid());
                 unitParams.put("bid", bid);
             }

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

@@ -900,7 +900,7 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
             }
             String url = PropertiesUtils.getConfig("kuaishou_api_url") + KuaishouInterfaceConstant.AD_UNIT_CREATE;
             Map<String, String> headers = new HashMap<>();
-            requestJson.put("advertiser_id", advertiserId);
+            requestJson.put("advertiser_id",     advertiserId);
             headers.put("Access-Token", accessToken);
             headers.put("Content-Type", " application/json");
             String result = HttpUtils.kuaiShouhttpPostRequest(url, requestJson.toJSONString(), headers);