diff --git a/AllBase/Model/Result/PDDResult/PDDFrontProductInfo3.cs b/AllBase/Model/Result/PDDResult/PDDFrontProductInfo3.cs index d017bfd..fdb19ad 100644 --- a/AllBase/Model/Result/PDDResult/PDDFrontProductInfo3.cs +++ b/AllBase/Model/Result/PDDResult/PDDFrontProductInfo3.cs @@ -60,7 +60,9 @@ namespace AllBase.Model.Result.PDDResult public List topGallery { get; set; } public List viewImageData { get; set; } // [ "https://t00img.yangkeduo.com/goods/images/2019-12-14/3d66ace6-62cd-4d82-bfff-65c84b268361.jpg", ... ], public List detailGallery { get; set; } - public long? mallID { get; set; } // 525159017 + + public List videoGallery { get; set; } + public long? mallID { get; set; } // 525159017 public List skus { get; set; } @@ -208,8 +210,14 @@ namespace AllBase.Model.Result.PDDResult public int? height { get; set; } // 800 } + public class videoGalleryInfo + { + public string url { get; set; } // "https://img.pddpic.com/goods/images/2019-12-14/3d66ace6-62cd-4d82-bfff-65c84b268361.jpg", + public int? width { get; set; } // 800, + public int? height { get; set; } // 800 - public class topGalleryInfo + } + public class topGalleryInfo { public string url { get; set; } // "https://img.pddpic.com/goods/images/2019-12-14/3d66ace6-62cd-4d82-bfff-65c84b268361.jpg", public long? id { get; set; } // 20969775049, diff --git a/AllBase/Model/Result/PDDResult/PDDProductDetailInfo.cs b/AllBase/Model/Result/PDDResult/PDDProductDetailInfo.cs index 13d0971..91c4073 100644 --- a/AllBase/Model/Result/PDDResult/PDDProductDetailInfo.cs +++ b/AllBase/Model/Result/PDDResult/PDDProductDetailInfo.cs @@ -213,7 +213,7 @@ namespace AllBase.Model.Result.PDDResult public string url { get; set; } public int? width { get; set; } public int? height { get; set; } - // 图片类型 1 主图 2 详情图 3视频 + // 图片类型 1 主图 2 详情图 3|6视频 public int? type { get; set; } public object source { get; set; } public object status { get; set; } diff --git a/TEMUKJD/BLL/PDDProdFormConverter.cs b/TEMUKJD/BLL/PDDProdFormConverter.cs index af21276..df570c8 100644 --- a/TEMUKJD/BLL/PDDProdFormConverter.cs +++ b/TEMUKJD/BLL/PDDProdFormConverter.cs @@ -960,6 +960,17 @@ namespace TemuKJD.BLL }); galleryIndex++; } + foreach (var videoGallery in frontProdInfo.goods.videoGallery) + { + prodInfo.detail.galleries.Add(new gallery_item() + { + url = videoGallery.url, + type = 6, + //width = image.Width, + //height = image.Height, + }); + galleryIndex++; + } foreach (var detailGallery in frontProdInfo.goods.detailGallery) { prodInfo.detail.galleries.Add(new gallery_item()