diff --git a/AllBase/AllBase.csproj b/AllBase/AllBase.csproj
index d438c36..d154b98 100644
--- a/AllBase/AllBase.csproj
+++ b/AllBase/AllBase.csproj
@@ -187,12 +187,18 @@
+
+
+
+
+
+
@@ -205,7 +211,7 @@
-
+
diff --git a/AllBase/BaseClass.cs b/AllBase/BaseClass.cs
index d19050a..186ca40 100644
--- a/AllBase/BaseClass.cs
+++ b/AllBase/BaseClass.cs
@@ -27,8 +27,8 @@ namespace AllBase
///
/// 版本ID
///
- public static int VersionCount = 585;
- //public static int VersionCount = 585;
+ public static int VersionCount = 587;
+ //public static int VersionCount = 587;
///
/// 版本号
diff --git a/AllBase/GetHtml.cs b/AllBase/GetHtml.cs
index 59dcb77..b952e17 100644
--- a/AllBase/GetHtml.cs
+++ b/AllBase/GetHtml.cs
@@ -2001,5 +2001,31 @@ Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrom
}
}
}
+
+ ///
+ /// 字符串转Unicode
+ ///
+ /// 源字符串
+ /// Unicode编码后的字符串
+ public static string String2Unicode(string source)
+ {
+ var bytes = Encoding.Unicode.GetBytes(source);
+ var stringBuilder = new StringBuilder();
+ for (var i = 0; i < bytes.Length; i += 2)
+ {
+ stringBuilder.AppendFormat("\\u{0}{1}", bytes[i + 1].ToString("x").PadLeft(2, '0'), bytes[i].ToString("x").PadLeft(2, '0'));
+ }
+ return stringBuilder.ToString();
+ }
+
+ ///
+ /// Unicode转字符串
+ ///
+ /// 经过Unicode编码的字符串
+ /// 正常字符串
+ public static string Unicode2String(string source)
+ {
+ return new Regex(@"\\u([0-9A-F]{4})", RegexOptions.IgnoreCase | RegexOptions.Compiled).Replace(source, x => Convert.ToChar(Convert.ToUInt16(x.Result("$1"), 16)).ToString());
+ }
}
}
diff --git a/AllBase/Model/Param/PDDProdParam/PDDProdDecorationCommitParam.cs b/AllBase/Model/Param/PDDProdParam/PDDProdDecorationCommitParam.cs
new file mode 100644
index 0000000..ca044f8
--- /dev/null
+++ b/AllBase/Model/Param/PDDProdParam/PDDProdDecorationCommitParam.cs
@@ -0,0 +1,41 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AllBase.Model.Param.PDDProdParam
+{
+ public class PDDProdDecorationCommitParam
+ {
+ public long? goods_id { get; set; }
+ public long? goods_commit_id { get; set; }
+ public List decoration_floor_list { get; set; }
+ public string preview_key { get; set; }
+ }
+
+ public class decoration_floor_param
+ {
+ public string type { get; set; }
+ public long? floor_id { get; set; } = null;
+ public List content_list { get; set; }
+ }
+
+ public class decoration_content_param
+ {
+ public string text { get; set; }
+ public string img_url { get; set; }
+ public int? height { get; set; }
+ public int? width { get; set; }
+ public text_module_detail_param text_module_details { get; set; }
+ public object file_id { get; set; }
+ }
+ public class text_module_detail_param
+ {
+ public int? font_size { get; set; }
+ public int font_family { get; set; }
+ public string align { get; set; }
+ public string background_color { get; set; }
+ public string font_color { get; set; }
+ }
+}
diff --git a/AllBase/Model/Param/PDDProdParam/PDDProductUploadParam.cs b/AllBase/Model/Param/PDDProdParam/PDDProductUploadParam.cs
new file mode 100644
index 0000000..be11317
--- /dev/null
+++ b/AllBase/Model/Param/PDDProdParam/PDDProductUploadParam.cs
@@ -0,0 +1,259 @@
+using AllBase.Model.Result.PDDResult;
+using NaiBa.Util.Extension;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AllBase.Model.Param.PDDProdParam
+{
+ public class PDDProductUploadParam
+ {
+ public long? goods_id { get; set; }
+ public string goods_commit_id { get; set; }
+ public List