代理版本调试

This commit is contained in:
wule_5900x committed 2026-07-05 22:53:54 +08:00
1 parent 0b325e7cd8
commit 8ff2508632
36 files changed
+1049 -342

No files matched your search

+38
View File
@@ -471,6 +471,44 @@ namespace TemuKJD.BLL
prodInfo.detail.extend_warranty_dto = new extend_warranty_dto_item() { extend_warranty = 0 };
//prodInfo.detail.fabric = null;
//prodInfo.detail.fabric_content = null;
if (!frontProdInfo.goods.gallery.Any(g => g.type == 1))
{
var jsonStr = BaseRegex.GetJsonObjStrJson(ref outProdJson, "carousel_section").OrderByDescending(s => s.Length).FirstOrDefault();
if (jsonStr != null)
{
var jArrStr = BaseRegex.GetJsonArrStrJson(ref jsonStr, "picture_list").OrderByDescending(s => s.Length).FirstOrDefault();
if (jArrStr != null)
{
foreach (var jObj in JArray.Parse(jArrStr))
{
var jStr = JsonHelper.SerializeObject(jObj);
var type = BaseRegex.GetIntJson(ref jStr, "type");
var img_url = BaseRegex.GetStringJson(ref jStr, "url");
var id = BaseRegex.GetLongJson(ref jStr, "id");
var goods_id = BaseRegex.GetLongJson(ref jStr, "goods_id");
var width = BaseRegex.GetIntJson(ref jStr, "width");
var height = BaseRegex.GetIntJson(ref jStr, "height");
var enable_share = BaseRegex.GetIntJson(ref jStr, "enable_share");
var gallery_pic = BaseRegex.GetIntJson(ref jStr, "gallery_pic");
if (!img_url.IsNullOrEmpty() && !type.IsNullOrZero())
{
frontProdInfo.goods.gallery.Add(new PDDFrontProductInfo2_gallery()
{
enable_share = enable_share,
goods_id = goods_id,
width = width,
height = height,
id = id,
type = type,
url = img_url,
priority = frontProdInfo.goods.gallery.Count,
});
}
}
}
}
}
if (!frontProdInfo.goods.gallery.Any(g => g.type == 1) && frontProdInfo.goods.gallery.Any(g => g.type == 13))
{
foreach (var g in frontProdInfo.goods.gallery)