Selaa lähdekoodia

代理商 数据

zhaoxian 1 vuosi sitten
vanhempi
commit
a28129a5aa

+ 2 - 7
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/data/service/impl/ByteDanceAdvertiserDataServiceImpl.java

@@ -378,8 +378,6 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
             OauthToken token, ByteDanceAdvertiserReportDTO conditions, Integer page) {
 
         List<Object> advertiserAccountList = redisUtil.getList("ADVERTISER" + conditions.getStartDate(), null);
-
-        log.info("开始获取广告主账户报表,账户id:{}--时间---{},page:{}", token.getAccountId(), conditions.getStartDate(), page);
         conditions.setPage(page);
         SerializeConfig config = new SerializeConfig();
         config.propertyNamingStrategy = PropertyNamingStrategy.SnakeCase;
@@ -394,7 +392,7 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
         Integer code = getObject.getInteger("code");
         String message = getObject.getString("message");
         if (null == code || code != 0) {
-            log.error("头条广告主数据获取异常:{}---code--{}", message, code);
+            log.error("头条广告主数据获取异常:入参{}  \n结果:{}", conditions, getObject.toJSONString());
 
             //请求过于频繁
             if (40100 == code) {
@@ -510,10 +508,7 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
      * 获取广告主 分版位信息
      */
     private void getPositionAdvertiserReportByPage(OauthToken token, ByteDanceAdvertiserReportDTO conditions, Integer page) {
-
         List<Object> advertiserAccountList = redisUtil.getList("POSITION_ADVERTISER" + conditions.getStartDate(), null);
-
-        log.info("(分版位)开始获取广告主账户报表,账户id:{}--时间---{},page:{}", token.getAccountId(), conditions.getStartDate(), page);
         conditions.setPage(page);
         SerializeConfig config = new SerializeConfig();
         config.propertyNamingStrategy = PropertyNamingStrategy.SnakeCase;
@@ -528,7 +523,7 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
         Integer code = getObject.getInteger("code");
         String message = getObject.getString("message");
         if (null == code || code != 0) {
-            log.error("头条广告主数据获取异常(分版位):{}---code--{}", message, code);
+            log.error("----头条广告主数据获取异常(分版位):入参{}  \n结果:{}", conditions, getObject.toJSONString());
 
             //请求过于频繁
             if (40100 == code) {