|
|
@@ -100,7 +100,7 @@ public class BytedanceProductUpdateServiceImpl implements IBytedanceProductUpdat
|
|
|
continue;
|
|
|
}
|
|
|
if (!productTypeMap.containsKey(album.getTheme())){
|
|
|
- errors.add("上传商品:没有找到对应的产品类型:" + album.getTheme());
|
|
|
+// errors.add("上传商品:没有找到对应的产品类型:" + album.getTheme());
|
|
|
System.out.println(">>>>没有找到对应的产品类型:" + album.getTheme());
|
|
|
System.out.println("\n\n\n");
|
|
|
continue;
|
|
|
@@ -108,7 +108,7 @@ public class BytedanceProductUpdateServiceImpl implements IBytedanceProductUpdat
|
|
|
String schemaLink = null;
|
|
|
if (platform.getIsBytedance()==1){
|
|
|
if (!albumIdToLinkMap.containsKey(album.getAlbumId())){
|
|
|
- errors.add("上传商品:没有找到对应的推广链接,无法上传商品,剧目ID:" + album.getAlbumId() + ", 剧目名称:" + album.getName());
|
|
|
+// errors.add("上传商品:没有找到对应的推广链接,无法上传商品,剧目ID:" + album.getAlbumId() + ", 剧目名称:" + album.getName());
|
|
|
System.out.println(">>>>没有找到对应的推广链接,无法上传商品,剧目ID:" + album.getAlbumId() + ", 剧目名称:" + album.getName());
|
|
|
System.out.println("\n\n\n");
|
|
|
continue;
|
|
|
@@ -468,9 +468,19 @@ public class BytedanceProductUpdateServiceImpl implements IBytedanceProductUpdat
|
|
|
JSONObject jsonObject = JSONObject.parseObject(rr);
|
|
|
int code = jsonObject.getIntValue("code");
|
|
|
if (code != 0) {
|
|
|
- errorBlanket.add("创建字节小程序推广链接失败,code: " + code + ", msg: " + jsonObject.getString("message") + ", 广告账号ID:" + advertiserId + ", 小程序资产ID:" + instanceId);
|
|
|
- System.out.println("创建字节小程序推广链接失败,code: " + code + ", msg: " + jsonObject.getString("message"));
|
|
|
- continue;
|
|
|
+ String message = jsonObject.getString("message");
|
|
|
+ if (message.contains("资产非审核成功")){
|
|
|
+ errorBlanket.add("字节小程序"+instanceId+"未通过审核,等待下次再试");
|
|
|
+ break;
|
|
|
+ }else if (message.contains("请求频率超限")){
|
|
|
+ errorBlanket.add("广告账号"+advertiserId+"请求频率超限");
|
|
|
+ continue;
|
|
|
+ } else {
|
|
|
+ errorBlanket.add("创建字节小程序推广链接失败,code: " + code + ", msg: " + jsonObject.getString("message") + ", 广告账号ID:" + advertiserId + ", 小程序资产ID:" + instanceId);
|
|
|
+ System.out.println("创建字节小程序推广链接失败,code: " + code + ", msg: " + jsonObject.getString("message"));
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
}else {
|
|
|
|
|
|
}
|