订单功能服务端新增 商品编辑功能优化等
This commit is contained in:
1 parent
33eafd6781
commit
f2534535f7
22 files changed
+911
-98
No files matched your search
@@ -332,8 +332,8 @@ namespace TemuKJD.BLL
|
||||
collectAuthorityTag = "-" + BaseClass.UserName;
|
||||
|
||||
bool isExist = false;
|
||||
var existUrl = BaseClass.BuildPDDObjString("product/get_product_list");
|
||||
string existData = UserLogin.GetSignaturex() + "&search_spu=" + prodInfo.detail.goods_id + collectAuthorityTag;
|
||||
var existUrl = BaseClass.BuildPDDObjString("product/get_product_spu_id_list");
|
||||
string existData = UserLogin.GetSignaturex() + "&search_spu_ids=" + prodInfo.detail.goods_id + collectAuthorityTag;
|
||||
string html = GetHtml.PostUtf8(existUrl, existData);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
html = GetHtml.PostUtf8(existUrl, existData);
|
||||
@@ -469,6 +469,32 @@ 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) && frontProdInfo.goods.gallery.Any(g => g.type == 13))
|
||||
{
|
||||
foreach (var g in frontProdInfo.goods.gallery)
|
||||
{
|
||||
if (g.type == 13)
|
||||
g.type = 1;
|
||||
}
|
||||
}
|
||||
if (!frontProdInfo.goods.gallery.Any(g => g.type == 1) && frontProdInfo.goods.gallery.Any(g => g.type == 2))
|
||||
{
|
||||
foreach (var g in frontProdInfo.goods.gallery.Where(g => g.type == 2)
|
||||
.OrderBy(g => Math.Abs(100m - 100m * g.width.ParseToDecimal() / g.height.ParseToDecimal(1))).Take(3).ToList())
|
||||
{
|
||||
frontProdInfo.goods.gallery.Add(new PDDFrontProductInfo2_gallery()
|
||||
{
|
||||
enable_share = g.enable_share,
|
||||
goods_id = g.goods_id,
|
||||
height = g.height,
|
||||
id = g.id,
|
||||
priority = g.priority,
|
||||
type = 1,
|
||||
url = g.url,
|
||||
width = g.width,
|
||||
});
|
||||
}
|
||||
}
|
||||
prodInfo.detail.galleries = new List<gallery_item>();
|
||||
int galleryIndex = 0;
|
||||
foreach (var frontGallery in frontProdInfo.goods.gallery)
|
||||
@@ -655,6 +681,9 @@ namespace TemuKJD.BLL
|
||||
shipment_limit_second_list = null,
|
||||
sku69_code = "",
|
||||
};
|
||||
if ((int)frontSku.sku_price.ParseToDecimal() > 0)
|
||||
skuInfo.multi_price = Math.Min(skuInfo.multi_price.ParseToInt(), (int)frontSku.group_price.ParseToDecimal());
|
||||
|
||||
//List<string> specIds = frontSku.spec.Split(',').ToList();
|
||||
//List<string> specKeys = frontSku.spec_keys.Split(';').ToList();
|
||||
//List<string> specValues = frontSku.spec_values.Split(';').ToList();
|
||||
@@ -723,8 +752,8 @@ namespace TemuKJD.BLL
|
||||
collectAuthorityTag = "-" + BaseClass.UserName;
|
||||
|
||||
bool isExist = false;
|
||||
var existUrl = BaseClass.BuildPDDObjString("product/get_product_list");
|
||||
string existData = UserLogin.GetSignaturex() + "&search_spu=" + prodInfo.detail.goods_id + collectAuthorityTag;
|
||||
var existUrl = BaseClass.BuildPDDObjString("product/get_product_spu_id_list");
|
||||
string existData = UserLogin.GetSignaturex() + "&search_spu_ids=" + prodInfo.detail.goods_id + collectAuthorityTag;
|
||||
string html = GetHtml.PostUtf8(existUrl, existData);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
html = GetHtml.PostUtf8(existUrl, existData);
|
||||
|
||||
Reference in new issue
Block a user