导入外部pdd v3 增加视频
This commit is contained in:
1 parent
00759b2114
commit
e1b208ca05
3 files changed
+22
-3
No files matched your search
@@ -60,7 +60,9 @@ namespace AllBase.Model.Result.PDDResult
|
|||||||
public List<topGalleryInfo> topGallery { get; set; }
|
public List<topGalleryInfo> topGallery { get; set; }
|
||||||
public List<string> viewImageData { get; set; } // [ "https://t00img.yangkeduo.com/goods/images/2019-12-14/3d66ace6-62cd-4d82-bfff-65c84b268361.jpg", ... ],
|
public List<string> viewImageData { get; set; } // [ "https://t00img.yangkeduo.com/goods/images/2019-12-14/3d66ace6-62cd-4d82-bfff-65c84b268361.jpg", ... ],
|
||||||
public List<detailGalleryInfo> detailGallery { get; set; }
|
public List<detailGalleryInfo> detailGallery { get; set; }
|
||||||
public long? mallID { get; set; } // 525159017
|
|
||||||
|
public List<detailGalleryInfo> videoGallery { get; set; }
|
||||||
|
public long? mallID { get; set; } // 525159017
|
||||||
|
|
||||||
public List<frontSkuInfo3> skus { get; set; }
|
public List<frontSkuInfo3> skus { get; set; }
|
||||||
|
|
||||||
@@ -208,8 +210,14 @@ namespace AllBase.Model.Result.PDDResult
|
|||||||
public int? height { get; set; } // 800
|
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 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,
|
public long? id { get; set; } // 20969775049,
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ namespace AllBase.Model.Result.PDDResult
|
|||||||
public string url { get; set; }
|
public string url { get; set; }
|
||||||
public int? width { get; set; }
|
public int? width { get; set; }
|
||||||
public int? height { get; set; }
|
public int? height { get; set; }
|
||||||
// 图片类型 1 主图 2 详情图 3视频
|
// 图片类型 1 主图 2 详情图 3|6视频
|
||||||
public int? type { get; set; }
|
public int? type { get; set; }
|
||||||
public object source { get; set; }
|
public object source { get; set; }
|
||||||
public object status { get; set; }
|
public object status { get; set; }
|
||||||
|
|||||||
@@ -960,6 +960,17 @@ namespace TemuKJD.BLL
|
|||||||
});
|
});
|
||||||
galleryIndex++;
|
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)
|
foreach (var detailGallery in frontProdInfo.goods.detailGallery)
|
||||||
{
|
{
|
||||||
prodInfo.detail.galleries.Add(new gallery_item()
|
prodInfo.detail.galleries.Add(new gallery_item()
|
||||||
|
|||||||
Reference in new issue
Block a user