hpk 1 год назад
Родитель
Сommit
88e5a280d2

+ 4 - 1
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/data/service/impl/BytedanceMiniAppServiceImpl.java

@@ -143,6 +143,7 @@ public class BytedanceMiniAppServiceImpl implements IBytedanceMiniAppService {
                     JSONArray content = new JSONArray();
                     if (!Check.isNull(jsonObject)) {
                         Integer code = jsonObject.getInteger("err_no");
+                        String errMsg = jsonObject.getString("err_msg");
                         if (code == 0) {
                             JSONObject data = jsonObject.getJSONObject("data");
 
@@ -164,7 +165,9 @@ public class BytedanceMiniAppServiceImpl implements IBytedanceMiniAppService {
                             }
                         } else {
                             log.error("[{}]抖小ma_ecpm拉取失败{}~{},返回信息:{}", appId, startEventTime, endEventTime, s);
-                            insertErrorLog(isLog, startEventTime, endTime, "ma_ecpm:" + appId, "daily", s);
+                            if (errMsg == null || !errMsg.contains("access_token")) {
+                                insertErrorLog(isLog, startEventTime, endTime, "ma_ecpm:" + appId, "daily", s);
+                            }
                             return;
                         }
                     } else {

+ 1 - 1
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/handler/BytedanceReportRetryJob.java

@@ -242,7 +242,7 @@ public class BytedanceReportRetryJob {
                     changduExecutorService.submit(new Runnable() {
                         @Override
                         public void run() {
-                            miniAppService.getMaEcpm(startDate, endDate, appId, 1, id, isSend);
+                            miniAppService.getMaEcpm(startDate, endDate, appId, 0, id, isSend);
                         }
                     });
                 }