|
|
@@ -173,6 +173,7 @@ public class BytedanceProductUpdateServiceImpl implements IBytedanceProductUpdat
|
|
|
//IAP
|
|
|
List<JSONObject> iapPlatformList = bytedanceProductUpdateMapper.getIAPPlatformList(); //商品库列表
|
|
|
List<JSONObject> iapVideoList = bytedanceProductUpdateMapper.getIAPVideoList(); //剧目列表
|
|
|
+ System.out.println("待上传付费商品数: " + iapVideoList.size());
|
|
|
List<JSONObject> iapProductTypeEnums = bytedanceProductUpdateMapper.getIAPProductTypeEnums(); //商品类型
|
|
|
Map<String, Map<String, String>> advertiserToLinkMap = new HashMap<>();
|
|
|
|
|
|
@@ -465,10 +466,10 @@ public class BytedanceProductUpdateServiceImpl implements IBytedanceProductUpdat
|
|
|
Map<String, String> res = new HashMap<>(reqAlbumIds.size());
|
|
|
|
|
|
List<JSONObject> unfound = new ArrayList<>(requests);
|
|
|
- for (int page=1; page<60; page++){
|
|
|
+ for (int page=1; page<=5; page++){
|
|
|
JSONArray playletDetailInfo = getPlayletDetail(advertiserId, accessToken, instanceId, errorBlanket,page);
|
|
|
if (playletDetailInfo == null || playletDetailInfo.isEmpty()){
|
|
|
- return null;
|
|
|
+ break;
|
|
|
}
|
|
|
for (int i = 0; i < playletDetailInfo.size(); i++) {
|
|
|
JSONObject obj = playletDetailInfo.getJSONObject(i);
|
|
|
@@ -485,6 +486,11 @@ public class BytedanceProductUpdateServiceImpl implements IBytedanceProductUpdat
|
|
|
if (unfound.isEmpty()){
|
|
|
break;
|
|
|
}
|
|
|
+ try {
|
|
|
+ Thread.sleep(500);
|
|
|
+ }catch (Exception ignored){
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (unfound.isEmpty()){
|