|
|
@@ -93,8 +93,10 @@ public class BytedanceCdpProjectServiceImpl implements IBytedanceCdpProjectServi
|
|
|
bytedanceCdpProjectMapper.replaceBytedanceCdpProjectList(projectList);
|
|
|
} else {
|
|
|
//40100请求超频
|
|
|
- if (40100 == code && count <= 3)
|
|
|
+ if (40100 == code && count <= 3) {
|
|
|
+ Thread.sleep(500);
|
|
|
getProjectListVo(advertiserId, type, date, page, count + 1);
|
|
|
+ }
|
|
|
log.error("获取项目列表失败(url:{}),入参:{}\n结果:{}", url, JSONObject.toJSONString(params), obj);
|
|
|
}
|
|
|
if (nextPage) {
|
|
|
@@ -147,8 +149,10 @@ public class BytedanceCdpProjectServiceImpl implements IBytedanceCdpProjectServi
|
|
|
}
|
|
|
} else {
|
|
|
//40110请求超频
|
|
|
- if (40110 == code && count <= 3)
|
|
|
+ if (40110 == code && count <= 3) {
|
|
|
+ Thread.sleep(500);
|
|
|
getByteAppInfoVo(advertiserId, searchType, page, count + 1);
|
|
|
+ }
|
|
|
log.error("账户({})获取抖小列表失败,入参:{}\n结果:{}", advertiserId, JSONObject.toJSONString(params), obj);
|
|
|
bytedanceCdpProjectMapper.insertErrorAdvertiserId(advertiserId, "tt");
|
|
|
}
|
|
|
@@ -204,8 +208,10 @@ public class BytedanceCdpProjectServiceImpl implements IBytedanceCdpProjectServi
|
|
|
}
|
|
|
} else {
|
|
|
//40110请求超频
|
|
|
- if (40110 == code && count <= 3)
|
|
|
+ if (40110 == code && count <= 3) {
|
|
|
+ Thread.sleep(500);
|
|
|
getWxAppInfoVo(advertiserId, searchType, page, count + 1);
|
|
|
+ }
|
|
|
log.error("账户({})获取微小列表失败,入参:{}\n结果:{}", advertiserId, JSONObject.toJSONString(params), obj);
|
|
|
bytedanceCdpProjectMapper.insertErrorAdvertiserId(advertiserId, "wx");
|
|
|
}
|