拼多多商品获取逻辑

This commit is contained in:
wule committed 2025-09-11 19:06:16 +08:00
1 parent 840636d5c9
commit 6639224771
68 files changed
+7132 -692

No files matched your search

@@ -12,6 +12,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TemuKJD.BaseForms;
using TemuKJD.BLL;
using Work;
namespace TemuKJD.KJDForms.ProductSelectForms
@@ -162,7 +163,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
string body = @"{""searchText"":""" + searchStr + @"""}";
string refere = "https://agentseller.temu.com/goods/create/category";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
@@ -12,14 +12,10 @@ using System.Threading.Tasks;
using System.Windows.Forms;
using AllBase;
using Work;
using TemuKJD.BLL;
namespace TemuKJD.KJDForms.ProductSelectForms
{
public enum SetProductSelectNotesType
{
DbProduct,
ThirdProduct,
}
public partial class DbProductSelectEditNotesForm : LRBaseForm
{
TemuDBProductSelect dbProdSelect = null;
@@ -1741,7 +1741,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
//string refere = "https://seller.kuajingmaihuo.com/goods/product-create/category?from=productList";
string refere = "https://agentseller.temu.com/goods/create/category";
string body = @"{""catId"":" + catId + "}";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private string CreateSizeSpec(ShopLoginInfo shop, string draftId, TemuSizeSpecParam sizeParam)
@@ -1752,7 +1752,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
//string refere = "https://seller.kuajingmaihuo.com/goods/product-create/product-edit?productDraftId="+
// draftId + "&from=productDraftList";
string refere = "https://agentseller.temu.com/goods/edit?productDraftId=" + draftId + "&from=productDraftList";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private string SaveDraft(ShopLoginInfo shop, string draftId, TemuProductParam prodParam)
@@ -1763,7 +1763,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
//string refere = "https://seller.kuajingmaihuo.com/goods/product-create/product-edit?productDraftId=" +
// draftId + "&from=productDraftList";
string refere = "https://agentseller.temu.com/goods/edit?productDraftId=" + draftId + "&from=productDraftList";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
@@ -1775,7 +1775,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
//string refere = "https://seller.kuajingmaihuo.com/goods/product-create/product-edit?productDraftId=" +
// draftId + "&from=productDraftList";
string refere = "https://agentseller.temu.com/goods/edit?productDraftId=" + draftId + "&from=productDraftList";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private string EditProduct(ShopLoginInfo shop, string productId, TemuProductParam prodParam)
@@ -1783,7 +1783,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
string url = "https://agentseller.temu.com/visage-agent-seller/product/edit";
string body = JsonHelper.SerializeObject(prodParam).Replace("productDraftId", "productId");
string refere = "https://agentseller.temu.com/goods/edit?from=productList&productId=" + productId;
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private string QueryOrAddSpec(ShopLoginInfo shop, string draftId, string parentSpecId, string specName)
@@ -1792,7 +1792,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
string body = @"{""parentSpecId"":" + parentSpecId + @",""specName"":""" + specName + @"""}";
string refere = "https://agentseller.temu.com/goods/edit?productDraftId=" + draftId + "&from=productDraftList";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private string QueryCategoryTemplate(ShopLoginInfo shop, string draftId, string catId)
@@ -1801,7 +1801,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
string body = @"{""catId"":" + catId + @",""langList"":[""en""]}";
string refere = "https://agentseller.temu.com/goods/edit?productDraftId=" + draftId + "&from=productDraftList";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private string CheckImgMd5(ShopLoginInfo shop, string draftId, string parentSpecId, string fileMd5)
@@ -1811,7 +1811,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
string refere = "https://agentseller.temu.com/goods/edit?productDraftId=" + draftId + "&from=menu&st_time="
+ BaseClass.DateTimeToTimestampSeconds(DateTime.Now);
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
//https://img.kwcdn.com/product/fancy/8dc012c8-fa6d-4625-b2bb-efd32f44f889.jpg
//"materialName":"8dc012c8-fa6d-4625-b2bb-efd32f44f889"
@@ -1828,7 +1828,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
string refere = "https://agentseller.temu.com/goods/edit?productDraftId=" + draftId + "&from=menu&st_time="
+ BaseClass.DateTimeToTimestampSeconds(DateTime.Now);
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private string GetImgUpSign(ShopLoginInfo shop, string draftId)
@@ -1838,7 +1838,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
string refere = "https://agentseller.temu.com/goods/edit?productDraftId=" + draftId + "&from=menu&st_time="
+ BaseClass.DateTimeToTimestampSeconds(DateTime.Now);
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private string UploadImage(ShopLoginInfo shop, string draftId, string fileFullName, string uploadSign)
@@ -1866,7 +1866,7 @@ Content-Disposition: form-data; name=""upload_sign""
string refere = "https://agentseller.temu.com/goods/edit?productDraftId=" + draftId + "&from=menu&st_time="
+ BaseClass.DateTimeToTimestampSeconds(DateTime.Now);
return KJDHttpResponse.PostResponseUpload(shop, url, body, refere, boundary);
return HttpResponseBLL.PostResponseUpload(shop, url, body, refere, boundary);
}
@@ -12,6 +12,7 @@ using System.Threading.Tasks;
using System.Windows.Forms;
using AllBase;
using Work;
using TemuKJD.BLL;
namespace TemuKJD.KJDForms.ProductSelectForms
{