diff --git a/AllBase/AllBase.csproj b/AllBase/AllBase.csproj
index 5f4f98c..a2fb324 100644
--- a/AllBase/AllBase.csproj
+++ b/AllBase/AllBase.csproj
@@ -233,6 +233,7 @@
+
diff --git a/AllBase/Model/Result/PDDResult/PDDFrontProductInfo4.cs b/AllBase/Model/Result/PDDResult/PDDFrontProductInfo4.cs
new file mode 100644
index 0000000..6086915
--- /dev/null
+++ b/AllBase/Model/Result/PDDResult/PDDFrontProductInfo4.cs
@@ -0,0 +1,73 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using System.Data.SqlTypes;
+using System.Linq;
+using System.Runtime.InteropServices;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AllBase.Model.Result.PDDResult
+{
+ public class PDDFrontProductInfo4
+ {
+ [JsonProperty("商品编号")]
+ public string ProductId { get; set; }
+
+ [JsonProperty("商品链接")]
+ public string ProductUrl { get; set; }
+
+ [JsonProperty("标题")]
+ public string Title { get; set; }
+
+ [JsonProperty("描述")]
+ public string Description { get; set; }
+
+ [JsonProperty("视频链接")]
+ public string VideoUrl { get; set; }
+
+ [JsonProperty("类目")]
+ public string Category { get; set; }
+
+ [JsonProperty("链接")]
+ public string Link { get; set; }
+
+ [JsonProperty("评论")]
+ public string Comments { get; set; }
+
+ [JsonProperty("属性")]
+ public Dictionary Attributes { get; set; }
+
+ [JsonProperty("主图")]
+ public List MainImages { get; set; }
+
+ [JsonProperty("详情图")]
+ public List DetailImages { get; set; }
+
+ [JsonProperty("规格")]
+ public Dictionary> Specifications { get; set; }
+
+ [JsonProperty("价格与库存")]
+ public Dictionary SKU { get; set; }
+ }
+
+
+
+ public class PriceStock
+ {
+ [JsonProperty("规格值组合")]
+ public string SpecValue { get; set; }
+
+ [JsonProperty("价格")]
+ public string Price { get; set; }
+
+ [JsonProperty("原价")]
+ public string OriginalPrice { get; set; }
+
+ [JsonProperty("库存")]
+ public int Stock { get; set; }
+
+ [JsonProperty("规格图")]
+ public string SpecImage { get; set; }
+ }
+}
diff --git a/TEMUKJD/BLL/PDDProdFormConverter.cs b/TEMUKJD/BLL/PDDProdFormConverter.cs
index bca0b8c..c700871 100644
--- a/TEMUKJD/BLL/PDDProdFormConverter.cs
+++ b/TEMUKJD/BLL/PDDProdFormConverter.cs
@@ -14,3214 +14,3618 @@ using Work;
namespace TemuKJD.BLL
{
- public class PDDProdFormConverter
- {
- ///
- /// 拼多多前端采集转拼多多后台采集数据
- ///
- ///
- ///
- ///
- ///
- public string PddFrontToPddBackConvert(string outProdJson, bool UpdateOldData = true, string specialProdType = null, bool IsCollectAuthorityUser = false)
- {
- PDDFrontProductInfo frontProdInfo = null;
- try
- {
- frontProdInfo = JsonHelper.DeserializeJsonToObject(outProdJson);
- }
- catch(Exception ex)
- {
- return "转换错误" + ex.Message;
- }
- if (frontProdInfo == null || frontProdInfo.goods_id == null)
- {
- return "商品数据信息为空";
- }
-
- KJDDBProduct dbProd = new KJDDBProduct() { size_json = "{}" };
- PDDProductInfo prodInfo = new PDDProductInfo()
- {
- //source_json = JsonHelper.JObjectParse(outProdJson),
- source_json = null,
- sale_count = frontProdInfo.goods.sold_quantity.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