修改程序逻辑,准备批量打包
This commit is contained in:
1 parent
aab73b978f
commit
55528e5109
30 files changed
+297
-150
No files matched your search
@@ -866,7 +866,12 @@ namespace TemuKJD.BLL
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 微信店铺采集转拼多多
|
||||
/// </summary>
|
||||
/// <param name="convertRst"></param>
|
||||
/// <param name="dbProd"></param>
|
||||
/// <returns></returns>
|
||||
public PDDProductInfo WXProdToPddConvert(out string convertRst, KJDDBProduct dbProd)
|
||||
{
|
||||
convertRst = "";
|
||||
@@ -1220,7 +1225,12 @@ namespace TemuKJD.BLL
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 1688网页端采集转拼多多
|
||||
/// </summary>
|
||||
/// <param name="convertRst"></param>
|
||||
/// <param name="dbProd"></param>
|
||||
/// <returns></returns>
|
||||
public PDDProductInfo _1688ClientToPddConvert(out string convertRst, KJDDBProduct dbProd)
|
||||
{
|
||||
convertRst = "";
|
||||
@@ -1565,7 +1575,7 @@ namespace TemuKJD.BLL
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 1688外部数据转拼多多
|
||||
/// 1688外部数据转拼多多(万象工具)
|
||||
/// </summary>
|
||||
/// <param name="convertRst"></param>
|
||||
/// <param name="dbProd"></param>
|
||||
@@ -1770,6 +1780,17 @@ namespace TemuKJD.BLL
|
||||
prodInfo.detail.size_spec_id = null;
|
||||
|
||||
prodInfo.detail.sku = new List<sku_item>();
|
||||
if (_1688OutProdInfo.skus == null)
|
||||
_1688OutProdInfo.skus = new List<_1688Sku>();
|
||||
if (_1688OutProdInfo.skus.Count == 0)
|
||||
{
|
||||
_1688OutProdInfo.skus.Add(new _1688Sku()
|
||||
{
|
||||
skuId = -1,
|
||||
quantity = 999,
|
||||
price = (_1688OutProdInfo.priceHigh.ParseToDecimal() * 100).ParseToInt(),
|
||||
});
|
||||
}
|
||||
foreach (var sku in _1688OutProdInfo.skus)
|
||||
{
|
||||
var postFeeValue = (_1688OutProdInfo.deliveryInfo?.carriageList?.Max(c => c.price)).ParseToDecimal();
|
||||
@@ -1849,6 +1870,18 @@ namespace TemuKJD.BLL
|
||||
}
|
||||
}
|
||||
}
|
||||
if (skuInfo.spec.Count == 0)
|
||||
skuInfo.spec.Add(new spec_item()
|
||||
{
|
||||
parent_id = 0,
|
||||
parent_name = "款式",
|
||||
spec_id = 0,
|
||||
spec_name = "默认",
|
||||
});
|
||||
if(string.IsNullOrEmpty(skuInfo.thumb_url))
|
||||
{
|
||||
skuInfo.thumb_url = prodInfo.detail.galleries.FirstOrDefault(g => g.type == 1)?.url;
|
||||
}
|
||||
prodInfo.detail.sku.Add(skuInfo);
|
||||
}
|
||||
prodInfo.detail.sku_type = null;
|
||||
@@ -1920,6 +1953,12 @@ namespace TemuKJD.BLL
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 微信商城手机版转拼多多
|
||||
/// </summary>
|
||||
/// <param name="convertRst"></param>
|
||||
/// <param name="dbProd"></param>
|
||||
/// <returns></returns>
|
||||
public PDDProductInfo WXClientToPddConvert(out string convertRst, KJDDBProduct dbProd)
|
||||
{
|
||||
convertRst = "";
|
||||
|
||||
Reference in new issue
Block a user