diff --git a/AllBase/AllBase.csproj b/AllBase/AllBase.csproj
index b2764c0..d8a13b6 100644
--- a/AllBase/AllBase.csproj
+++ b/AllBase/AllBase.csproj
@@ -221,6 +221,7 @@
+
diff --git a/AllBase/BaseClass.cs b/AllBase/BaseClass.cs
index c995425..9a6fbb4 100644
--- a/AllBase/BaseClass.cs
+++ b/AllBase/BaseClass.cs
@@ -27,7 +27,7 @@ namespace AllBase
///
/// 版本ID
///
- public static int VersionCount = 1125;
+ public static int VersionCount = 1128;
public static string MainPath = "29wx";
//public static string MainPath = "29wx";
//public static string MainPath = "29pdd";
diff --git a/AllBase/Model/Result/PDDResult/PDDFrontProductInfo2.cs b/AllBase/Model/Result/PDDResult/PDDFrontProductInfo2.cs
new file mode 100644
index 0000000..ca213be
--- /dev/null
+++ b/AllBase/Model/Result/PDDResult/PDDFrontProductInfo2.cs
@@ -0,0 +1,176 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AllBase.Model.Result.PDDResult
+{
+ public class PDDFrontProductInfo2
+ {
+ public long? server_time { get; set; } // 1780124019,
+ public string destination_url { get; set; } // "order_checkout.html",
+ public int? destination_type { get; set; } // 2,
+ public string pre_render_url { get; set; } // "csr/comm_mall_home_pre_render.html",
+ public PDDFrontProductInfo2_goods goods { get; set; }
+ public List sku { get; set; }
+ public PDDFrontProductInfo2_price price { get; set; }
+ public PDDFrontProductInfo2_mall_entrance mall_entrance { get; set; }
+ }
+
+ public class PDDFrontProductInfo2_mall_entrance
+ {
+ public PDDFrontProductInfo2_mall_data mall_data { get; set; }
+ }
+
+ public class PDDFrontProductInfo2_mall_data
+ {
+ public string mall_id { get; set; } // "268866967",
+ public string mall_name { get; set; } // "汐汐家的小店78",
+ }
+
+ public class PDDFrontProductInfo2_price
+ {
+ public int? line_price { get; set; } // 3524,
+ public int? price_style { get; set; } // 2,
+ public string price_suffix { get; set; } // "起",
+ public int? browser_price_style { get; set; } // 2,
+ public string browser_price_suffix { get; set; } // "起",
+ public int? min_on_sale_group_price { get; set; } // 622,
+ public int? max_on_sale_group_price { get; set; } // 1258,
+ public int? min_on_sale_normal_price { get; set; } // 2949,
+ public int? max_on_sale_normal_price { get; set; } // 3424,
+ public int? min_group_price { get; set; } // 622,
+ public int? max_group_price { get; set; } // 1258,
+ public int? max_normal_price { get; set; } // 3424,
+ public int? min_normal_price { get; set; } // 2949,
+ public int? old_min_on_sale_group_price { get; set; } // 2849,
+ public int? old_max_on_sale_group_price { get; set; } // 3324,
+ public int? old_min_group_price { get; set; } // 2849,
+ public int? old_max_group_price { get; set; } // 3324,
+ public int? unselect_normal_save_price { get; set; } // 2269,
+ public string new_price_prefix { get; set; } // "大促价"
+
+ }
+
+ public class PDDFrontProductInfo2_sku
+ {
+ public long? sku_id { get; set; } // 1728823886434,
+ public long? goods_id { get; set; } // 740124855378,
+ public string thumb_url { get; set; } // "https://img.pddpic.com/mms-material-img/2025-04-24/49694f57-4472-4f1b-b661-d7ac68909db6.jpeg.a.jpeg",
+ public long? init_quantity { get; set; } // 0,
+ public int? quantity { get; set; } // 907,
+ public long? limit_quantity { get; set; } // 999999,
+ public long? sold_quantity { get; set; } // 0,
+ public long? default_quantity { get; set; } // 100,
+ public long? is_onsale { get; set; } // 1,
+ public string spec { get; set; } // "27028052769,523089985",
+ public List specs { get; set; }
+ public int? price { get; set; } // 0,
+ public int? normal_price { get; set; } // 3424,
+ public int? group_price { get; set; } // 1258,
+ public int? old_group_price { get; set; } // 3324,
+ public int? market_price { get; set; } // 0,
+ public int? weight { get; set; } // 0,
+ public object yellow_label_list { get; set; } // [ { "label_text": "2件9.9折", "label_type": "single_goods_percentage_event" } ],
+ public long? preview_priority { get; set; } // 0,
+ public long? start_time { get; set; } // 0,
+ public long? end_time { get; set; } // 0,
+ public long? static_limit_quantity { get; set; } // 22416,
+ public string attribute { get; set; } // "{\"skuPreSaleTime\":0}",
+ public int? normal_save_price { get; set; } // 2166,
+ public int? sku_price { get; set; } // 1258
+
+ }
+
+ public class PDDFrontProductInfo2_spec
+ {
+ public string spec_key { get; set; } // "型号",
+ public string spec_value { get; set; } // "【短/裤】灰色+黑色k",
+ public long? spec_key_id { get; set; } // 1473,
+ public long? spec_value_id { get; set; } // 27028052769,
+ public bool? custom { get; set; } // false
+ }
+
+ public class PDDFrontProductInfo2_goods
+ {
+ public long? goods_id { get; set; } // 740124855378,
+ public long? cat_id { get; set; } // 23980,
+ public long? mall_id { get; set; } // 268866967,
+ public int? market_price { get; set; } // 3524,
+ public int? quantity { get; set; } // 1000,
+ //public string allowed_region { get; set; } // "2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32",
+ //public string country { get; set; } // "",
+ //public string warehouse { get; set; } // "",
+ public int? goods_type { get; set; } // 1,
+ //public long? cost_template_id { get; set; } // 538091597071767,
+ //public object vas_template_id { get; set; } // {},
+ //public string cost_province_codes { get; set; } // "5,9,19,20,21,28,29",
+ //public int? has_cost { get; set; } // 0,
+ public int? customer_num { get; set; } // 2,
+ //public List options { get; set; } // Array[5],
+ //public List new_options { get; set; } // Array[11],
+ public string goods_name { get; set; } // "男士休闲冰丝7分裤夏季运动短裤宽松大码七分五分裤中裤大裤衩",
+ public string share_desc { get; set; } // "【未发货可秒退】男士休闲冰丝7分裤夏季运动短裤宽松大码七分五分裤中裤大裤衩",
+ //public string share_link { get; set; } // "goods.html?goods_id=740124855378&page_from=35&pxq_secret_key=BJDIHCBY7YC4VCYDYIG7X6WVXU5O5S6N2VWZXSPLFRDU6ZGVJQRQ&_oak_share_snapshot_num=622&_oak_share_detail_id=22748330909&_oak_share_time=1780124019&share_oak_rcto=YWIshVCDq5jUwxJgNtFfNVWm94kq07DT4sJANGguc8zUR-nw0cmmncHLpsKJyWxb_Xk&_oak_share_ticket=null",
+ //public string preview_share_link { get; set; } // "mall_quality_assurance.html?_t_timestamp=comm_share_landing&goods_id=740124855378",
+ public string side_sales_tip { get; set; } // "已拼1.3万+件",
+ public long? sold_quantity { get; set; } // 13000,
+ //public int? is_app { get; set; } // 0,
+ //public int? app_new { get; set; } // 0,
+ //public int? we_chat_only { get; set; } // 0,
+ //public int? app_client_only { get; set; } // 0,
+ public int? is_onsale { get; set; } // 1,
+ public int? is_sku_onsale { get; set; } // 1,
+ public string hd_url { get; set; } // "https://img.pddpic.com/mms-material-img/2025-04-24/dfb3f103-9346-4c6a-81aa-3873cd8a6b94.jpeg.a.jpeg",
+ public string thumb_url { get; set; } // "https://img.pddpic.com/gaudit-image/2025-04-28/5e57dbe65a6e329c8c41ebb692710dfb.jpeg",
+ public string hd_thumb_url { get; set; } // "https://img.pddpic.com/gaudit-image/2025-04-28/531f7d8ec6ab4eefe0f45dcd693995b1.jpeg",
+ public string image_url { get; set; } // "https://img.pddpic.com/gaudit-image/2025-04-28/5e57dbe65a6e329c8c41ebb692710dfb.jpeg",
+ //public List images { get; set; } // [ ],
+ public int? second_hand { get; set; } // 0,
+ public int? is_pre_sale { get; set; } // 0,
+ public int? pre_sale_time { get; set; } // 0,
+ //public int? show_rec { get; set; } // 1,
+ //public int? show_rec_title { get; set; } // 1,
+ //public object call_waist_rec_extra_params { get; set; } // { "shield_mall_goods_rec": 1 },
+ //public int? is_mall_rec { get; set; } // 0,
+ //public int? rv_image { get; set; } // 1,
+ //public int? rv { get; set; } // 1,
+ //public int? gpv { get; set; } // 2,
+ //public int? is_mall_dsr { get; set; } // 1,
+ public int? skip_goods { get; set; } // "0",
+ public long? shipment_limit_second { get; set; } // 172800,
+ public List gallery { get; set; }
+ public List goods_property { get; set; }
+ public int? property_show_num { get; set; } // 3,
+ public int? has_activity { get; set; } // 1,
+ public long? created_at { get; set; } // 1745853825,
+ public string short_name { get; set; } // "男士休闲冰丝7分裤夏季运动短裤宽松大码七分五分裤中裤大裤衩",
+ public long? cat_id_1 { get; set; } // 239,
+ public long? cat_id_2 { get; set; } // 23979,
+ public long? cat_id_3 { get; set; } // 23980,
+ public long? cat_id_4 { get; set; } // 0,
+
+ }
+
+ public class PDDFrontProductInfo2_goods_property
+ {
+ public string key { get; set; }
+ public List values { get; set; }
+ public long? ref_pid { get; set; }
+ public long? reference_id { get; set; }
+ }
+
+ public class PDDFrontProductInfo2_gallery
+ {
+ public long? id { get; set; } // 1324122714994,
+ public long? goods_id { get; set; } // 740124855378,
+ public string url { get; set; } // "https://img.pddpic.com/mms-material-img/2025-04-28/8e85227f-458d-452d-b4ba-e6f720b4b8e8.jpeg",
+ public int? width { get; set; } // 800,
+ public int? height { get; set; } // 800,
+ public int? priority { get; set; } // -1,
+ public int? type { get; set; } // 1,
+ public int? enable_share { get; set; } // 1
+
+ }
+}
diff --git a/TEMUKJD/BLL/PDDProdFormConverter.cs b/TEMUKJD/BLL/PDDProdFormConverter.cs
index 773f3ee..2e8efba 100644
--- a/TEMUKJD/BLL/PDDProdFormConverter.cs
+++ b/TEMUKJD/BLL/PDDProdFormConverter.cs
@@ -29,7 +29,6 @@ namespace TemuKJD.BLL
try
{
frontProdInfo = JsonHelper.DeserializeJsonToObject(outProdJson);
-
}
catch(Exception ex)
{
@@ -387,7 +386,388 @@ namespace TemuKJD.BLL
}
return "";
}
-
+
+ ///
+ /// 拼多多前端采集转拼多多后台采集数据
+ ///
+ ///
+ ///
+ ///
+ ///
+ public string PddFrontToPddBackConvert2(string outProdJson, bool UpdateOldData = true, string specialProdType = null)
+ {
+ PDDFrontProductInfo2 frontProdInfo = null;
+ try
+ {
+ frontProdInfo = JsonHelper.DeserializeJsonToObject(outProdJson);
+ }
+ catch (Exception ex)
+ {
+ return "转换错误" + ex.Message;
+ }
+ if (frontProdInfo == null || frontProdInfo.goods.goods_id == null)
+ {
+ return "商品数据信息为空";
+ }
+
+ KJDDBProduct dbProd = new KJDDBProduct() { size_json = "{}" };
+ PDDProductInfo prodInfo = new PDDProductInfo()
+ {
+ source_json = JsonHelper.JObjectParse(outProdJson),
+ sale_count = frontProdInfo.goods.sold_quantity.ParseToLong().ParseToString(),
+ sale_count_text = frontProdInfo.goods.side_sales_tip,
+ };
+ prodInfo.chance_id = null;
+ prodInfo.chance_refere = null;
+ prodInfo.chance_tab = null;
+ prodInfo.decoration = new PDDProductDecorationInfo() { floor_list = new List() };
+
+ // 商品详情
+ prodInfo.detail = new PDDProductDetailInfo();
+ prodInfo.detail.allergy_refund = 0;
+ prodInfo.detail.allowed_region = new List