修改程序逻辑,准备批量打包

This commit is contained in:
wule committed 2026-05-28 17:28:08 +08:00
1 parent aab73b978f
commit 55528e5109
30 files changed
+297 -150

No files matched your search

+42 -3
View File
@@ -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 = "";
+2 -2
View File
@@ -97,7 +97,7 @@ namespace TemuKJD.BLL.PddApi
public static void GetShopClientInfo(List<ShopLoginInfo> shops = null)
{
if (BaseClass.MainPath == "binxixi")
if (BaseClass.MainPath == "29pdd")
{
ConcurrentList<ShopLoginInfo> shopList = new ConcurrentList<ShopLoginInfo>();
if (shops == null)
@@ -169,7 +169,7 @@ namespace TemuKJD.BLL.PddApi
public static void GetPddClientInfo()
{
if (BaseClass.MainPath == "binxixi")
if (BaseClass.MainPath == "29pdd")
{
var url = BaseClass.BuildPDDObjString("shop/get_pdd_client_info");
var data = UserLogin.GetSignaturex();
+1 -1
View File
@@ -297,7 +297,7 @@ namespace TemuKJD.BLL
shop.is_point_shop_expire = BaseRegex.GetBoolJson(ref shopStr, "is_point_shop_expire");
shop.expire_time = BaseRegex.GetIntJson(ref shopStr, "expire_time");
if (BaseClass.MainPath == "binxixi")
if (BaseClass.MainPath == "29pdd")
{
shop.AntiContents.Clear();
//shop.AntiContents.AddRange(JsonHelper.DeserializeJsonToList<string>(jObj["anti_contents"].IsNullOrEmpty() ? "[]" : jObj["anti_contents"].ToString()));