diff --git a/AllBase/AllBase.csproj b/AllBase/AllBase.csproj
index 703da7f..bde7079 100644
--- a/AllBase/AllBase.csproj
+++ b/AllBase/AllBase.csproj
@@ -190,10 +190,12 @@
+
+
diff --git a/AllBase/BaseClass.cs b/AllBase/BaseClass.cs
index a3347ca..ae9e32b 100644
--- a/AllBase/BaseClass.cs
+++ b/AllBase/BaseClass.cs
@@ -27,7 +27,7 @@ namespace AllBase
///
/// 版本ID
///
- public static int VersionCount = 500;
+ public static int VersionCount = 501;
//public static int VersionCount = 500;
///
diff --git a/AllBase/Model/Param/SalesManage/TemuActivityParam.cs b/AllBase/Model/Param/SalesManage/TemuActivityParam.cs
new file mode 100644
index 0000000..b9a2186
--- /dev/null
+++ b/AllBase/Model/Param/SalesManage/TemuActivityParam.cs
@@ -0,0 +1,64 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AllBase.Model.Param.SalesManage
+{
+ public class ActSkuListItem
+ {
+ ///
+ ///
+ ///
+ public long? skuId { get; set; }
+ ///
+ ///
+ ///
+ public int? activityPrice { get; set; }
+ }
+
+ public class ActSkcListItem
+ {
+ ///
+ ///
+ ///
+ public long? skcId { get; set; }
+ ///
+ ///
+ ///
+ public List skuList { get; set; }
+ }
+
+ public class ActProductListItem
+ {
+ ///
+ ///
+ ///
+ public long? productId { get; set; }
+ ///
+ ///
+ ///
+ public int? activityStock { get; set; }
+ ///
+ ///
+ ///
+ public List skcList { get; set; }
+ }
+
+ public class TemuActivityParam
+ {
+ ///
+ ///
+ ///
+ public int? activityType { get; set; }
+ ///
+ ///
+ ///
+ public long? activityThematicId { get; set; }
+ ///
+ ///
+ ///
+ public List productList { get; set; }
+ }
+}
diff --git a/AllBase/Model/Result/TemuActivityMatchProductInfo.cs b/AllBase/Model/Result/TemuActivityMatchProductInfo.cs
new file mode 100644
index 0000000..33790e9
--- /dev/null
+++ b/AllBase/Model/Result/TemuActivityMatchProductInfo.cs
@@ -0,0 +1,35 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AllBase.Model.Result
+{
+ public class TemuActivityMatchProductInfo
+ {
+ public string pictureUrl { get; set; }
+ public long? productId { get; set; }
+ public int? targetActivityStock { get; set; }
+ public int? suggestActivityStock { get; set; }
+ public string productName { get; set; }
+ public List skcList { get; set; }
+ }
+
+ public class TemuActivitySkcInfo
+ {
+ public long skcId { get; set; }
+ public List skuList { get; set; }
+ public string extCode { get; set; }
+ }
+
+ public class TemuActivitySkuInfo
+ {
+ public int? dailyPrice { get; set; }
+ public string extCode { get; set; }
+ public int? suggestActivityPrice { get; set; }
+ public long? skuId { get; set; }
+ public string currenty { get; set; }
+ public Dictionary
///
+ ///
+ /// 多个用逗号隔开
///
- private string GetActivityMatch(ShopLoginInfo shop, long? thematicId)
+ private string GetActivityMatch(ShopLoginInfo shop, long? thematicId, string spuIds="")
{
string url = "https://agentseller.temu.com/api/kiana/gamblers/marketing/enroll/scroll/match";
string body;
body = @"{""activityType"":13,""activityThematicId"":" + thematicId + @",""rowCount"":50}";
+ if (!string.IsNullOrWhiteSpace(spuIds))
+ {
+ body = @"{""activityType"":13,""activityThematicId"":" + thematicId +
+ @",""rowCount"":50,""productIds"":[" + spuIds + @"],""productSkcExtCodes"":[]}";
+ }
+ string refere = "https://agentseller.temu.com/activity/marketing-activity/detail-new?type=13&thematicId=" + thematicId;
+ return KJDHttpResponse.PostResponse2(shop, url, body, refere);
+ }
+
+ ///
+ /// 提交活动报名
+ ///
+ ///
+ ///
+ ///
+ ///
+ private string SubmitActivity(ShopLoginInfo shop, long? thematicId, string _body)
+ {
+ string url = "https://agentseller.temu.com/api/kiana/gamblers/marketing/enroll/submit";
+ string body;
+ body = _body;
string refere = "https://agentseller.temu.com/activity/marketing-activity/detail-new?type=13&thematicId=" + thematicId;
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
}
diff --git a/TEMUKJD/KJDForms/SalesCenterForms/MarketingActivityForm.resx b/TEMUKJD/KJDForms/SalesCenterForms/MarketingActivityForm.resx
index ccc3e86..76f7f60 100644
--- a/TEMUKJD/KJDForms/SalesCenterForms/MarketingActivityForm.resx
+++ b/TEMUKJD/KJDForms/SalesCenterForms/MarketingActivityForm.resx
@@ -165,6 +165,12 @@
True
+
+ True
+
+
+ True
+
True
diff --git a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponForm.cs b/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponForm.cs
index 4642e71..ea9f600 100644
--- a/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponForm.cs
+++ b/TEMUKJD/KJDForms/SalesCenterForms/Old/CouponForm.cs
@@ -147,7 +147,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
switch (columnName)
{
case "colSelect":
- if (row.Cells["colCanUse"].Value.ParseToBool())
+ if (row.Cells["colCanUse"].Value.ParseToBool() || row.Cells["colSelect"].Value.ParseToBool())
{
row.Cells["colSelect"].Value = !row.Cells["colSelect"].Value.ParseToBool();
if (dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value.ParseToBool())