拼多多商品获取逻辑

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

@@ -797,7 +797,7 @@ namespace TemuKJD.KJDForms.AdminForms
// body = @"{""pageSize"":100,""pageNum"":" + page + @",""secondarySelectStatusList"":[10],""supplierTodoTypeList"":[],""productSkcIdList"":[" + prodSkcIds + "]}";
//}
string referer = "https://agentseller.temu.com/newon/product-select";
return KJDHttpResponse.PostResponse2(shop, url, body, referer);
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
}
private string GetCheckPrice(ShopLoginInfo shop, string orderId)
@@ -805,7 +805,7 @@ namespace TemuKJD.KJDForms.AdminForms
string url = "https://agentseller.temu.com/api/kiana/mms/magneto/api/price-review-order/no-bom/reject-remark";
string body = @"{""orderId"":" + orderId + "}";
string referer = "https://agentseller.temu.com/newon/product-select";
return KJDHttpResponse.PostResponse2(shop, url, body, referer);
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
}
private string applyPrice(ShopLoginInfo shop, string orderId, string data)
@@ -813,7 +813,7 @@ namespace TemuKJD.KJDForms.AdminForms
string url = "https://agentseller.temu.com/api/kiana/mms/magneto/price/bargain-no-bom";
string body = data;
string referer = "https://agentseller.temu.com/newon/product-select";
return KJDHttpResponse.PostResponse2(shop, url, body, referer);
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
}
private string rePrice(ShopLoginInfo shop, string orderId, string data)
@@ -821,7 +821,7 @@ namespace TemuKJD.KJDForms.AdminForms
string url = "https://agentseller.temu.com/api/kiana/mms/magneto/price/bargain-no-bom";
string body = data;
string referer = "https://agentseller.temu.com/newon/product-select";
return KJDHttpResponse.PostResponse2(shop, url, body, referer);
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
}
private string cancelPrice(ShopLoginInfo shop, string orderId)
@@ -829,7 +829,7 @@ namespace TemuKJD.KJDForms.AdminForms
string url = "https://agentseller.temu.com/api/kiana/mms/magneto/api/price-review-order/no-bom/review";
string body = @"{""priceOrderId"":" + orderId + "}";
string referer = "https://agentseller.temu.com/newon/product-select";
return KJDHttpResponse.PostResponse2(shop, url, body, referer);
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
}
private string priceAdjust(ShopLoginInfo shop, string data)
@@ -837,7 +837,7 @@ namespace TemuKJD.KJDForms.AdminForms
string url = "https://agentseller.temu.com/api/kiana/mms/gmp/bg/magneto/api/price/priceAdjust/gmpProductBatchAdjustPrice";
string body = data;
string referer = "https://agentseller.temu.com/newon/product-select";
return KJDHttpResponse.PostResponse2(shop, url, body, referer);
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
}
/// <summary>
@@ -851,7 +851,7 @@ namespace TemuKJD.KJDForms.AdminForms
string url = "https://agentseller.temu.com/lich-mms/audit/edit/task/product/batchAdd";
string body = @"{""bizIdType"":1,""bizIds"":["+ productId + @"],""productEditItems"":[{""editItem"":1,""editAdvice"":""优化""}]}";
string referer = "https://agentseller.temu.com/goods/list?productId=" + productId;
return KJDHttpResponse.PostResponse2(shop, url, body, referer);
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
}
private string editPriceProductName(ShopLoginInfo shop, string taskUid, string productId, string productNewName)
@@ -860,7 +860,7 @@ namespace TemuKJD.KJDForms.AdminForms
//string body = @"{""productId"":4432690492,""taskUid"":""8de73095-733e-4cdf-8fbd-3ddd8d9dff18"",""taskVersion"":0,""refuseEdit"":false,""productName"":""男士轻便 EVA 拖鞋,带钩环后跟带 ,舒适的露趾拖鞋,适合室内和室外使用,家居拖鞋,易于使用的魔鬼毡扣带扣,洞洞鞋,家居拖鞋,带钩环扣件,适合室内和室外使用,带扣凉鞋,后厨工专用鞋简约款两用,适合室内/室外使用,春夏凉鞋,EVA 拖鞋,适合19个不同的搭配风格""}";
string body = @"{""productId"":" + productId + @",""taskUid"":""" + taskUid + @""",""taskVersion"":0,""refuseEdit"":false,""productName"":""" + productNewName + @"""}";
string referer = "https://agentseller.temu.com/goods/edit?from=platform&productId=" + productId + "&taskUid=" + taskUid;
return KJDHttpResponse.PostResponse2(shop, url, body, referer);
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
}
//申请修改 SKU分类和包装清单 体积与重量 商品名称
@@ -880,7 +880,7 @@ namespace TemuKJD.KJDForms.AdminForms
string url = "https://agentseller.temu.com/lich-mms/audit/edit/task/product/batchAdd";
string body = @"{""bizIdType"":1,""bizIds"":[" + productId + @"],""productEditItems"":[{""editItem"":4,""editAdvice"":""优化""},{""editItem"":8,""editAdvice"":""优化""}]}";
string referer = "https://agentseller.temu.com/goods/list?productId=" + productId;
return KJDHttpResponse.PostResponse2(shop, url, body, referer);
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
}
private string editPriceProductSizeAndNumberTaskQuery(ShopLoginInfo shop, string productId)
@@ -888,7 +888,7 @@ namespace TemuKJD.KJDForms.AdminForms
string url = "https://agentseller.temu.com/lich-mms/audit/edit/task/product/pageQuery";
string body = @"{""page"":1,""pageSize"":10,""editTaskAggStatuses"":[1],""productIdList"":[" + productId + "]}";
string referer = "https://agentseller.temu.com/goods/list";
return KJDHttpResponse.PostResponse2(shop, url, body, referer);
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
}
private string editPriceProductQuery(ShopLoginInfo shop, string prodId, string taskUid)
@@ -896,7 +896,7 @@ namespace TemuKJD.KJDForms.AdminForms
string url = "https://agentseller.temu.com/visage-agent-seller/product/query";
string body = @"{""productId"":" + prodId + @",""productEditTaskUid"":""" + taskUid + @"""}";
string refere = "https://agentseller.temu.com/goods/edit?from=platform&productId=" + prodId + "&taskUid=" + taskUid;
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private string editPriceProductSizeAndNumber(ShopLoginInfo shop, string taskUid, string productId, string data)
@@ -906,7 +906,7 @@ namespace TemuKJD.KJDForms.AdminForms
string body = ""; //@"{""productId"":" + productId + @",""taskUid"":""" + taskUid + @""",""taskVersion"":0,""refuseEdit"":false,""productName"":""" + productNewName + @"""}";
body = data;
string referer = "https://agentseller.temu.com/goods/edit?from=platform&productId=" + productId + "&taskUid=" + taskUid;
return KJDHttpResponse.PostResponse2(shop, url, body, referer);
return HttpResponseBLL.PostResponse2(shop, url, body, referer);
}
Bitmap defaultBitmap = new Bitmap(80, 80);
@@ -886,7 +886,7 @@ namespace TemuKJD.KJDForms.AdminForms
string url = "https://seller.kuajingmaihuo.com/bg-visage-mms/product/draft/add";
string refere = "https://seller.kuajingmaihuo.com/goods/product-create/category?from=productList";
string body = @"{""catId"":" + catId + "}";
return KJDHttpResponse.PostResponse(shop, url, body, refere);
return HttpResponseBLL.PostResponse(shop, url, body, refere);
}
private string SaveDraft(ShopLoginInfo shop, string draftId, TemuProductParam prodParam)
@@ -895,7 +895,7 @@ namespace TemuKJD.KJDForms.AdminForms
string body = JsonHelper.SerializeObject(prodParam);
string refere = "https://seller.kuajingmaihuo.com/goods/product-create/product-edit?productDraftId=" +
draftId + "&from=productDraftList";
return KJDHttpResponse.PostResponse(shop, url, body, refere);
return HttpResponseBLL.PostResponse(shop, url, body, refere);
}
@@ -905,7 +905,7 @@ namespace TemuKJD.KJDForms.AdminForms
string body = JsonHelper.SerializeObject(prodParam);
string refere = "https://seller.kuajingmaihuo.com/goods/product-create/product-edit?productDraftId=" +
draftId + "&from=productDraftList";
return KJDHttpResponse.PostResponse(shop, url, body, refere);
return HttpResponseBLL.PostResponse(shop, url, body, refere);
}
#endregion
@@ -10,6 +10,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TemuKJD.BaseForms;
using TemuKJD.BLL;
using TemuKJD.KJDForms.ProductThirdSelectForms;
using TemuKJD.KJDForms.ShopForms;
using Work;
@@ -304,7 +305,7 @@ namespace TemuKJD.KJDForms.AdminForms
string url = "https://seller.kuajingmaihuo.com/bg-visage-mms/product/query";
string body = @"{""productId"":" + prodId + @",""productEditTaskUid"":""""}";
string refere = "https://seller.kuajingmaihuo.com/goods/product-create/product-edit?from=productList&productId=" + prodId;
return KJDHttpResponse.PostResponse(shop, url, body, refere);
return HttpResponseBLL.PostResponse(shop, url, body, refere);
}
private string SizeSpecQuery(ShopLoginInfo shop, string prodId, string sizeSpecId)
@@ -312,7 +313,7 @@ namespace TemuKJD.KJDForms.AdminForms
string url = "https://seller.kuajingmaihuo.com/bg-anniston-mms/sizespec/query";
string body = @"{""businessId"":" + sizeSpecId + @",""reusable"":false}";
string refere = "https://seller.kuajingmaihuo.com/goods/product-create/product-edit?from=productList&productId=" + prodId;
return KJDHttpResponse.PostResponse(shop, url, body, refere);
return HttpResponseBLL.PostResponse(shop, url, body, refere);
}
}
}
@@ -17,6 +17,7 @@ using System.Windows.Forms;
using TemuKJD.Extension;
using TemuKJD.BaseForms;
using TemuKJD.KJDForms.ShopForms;
using TemuKJD.BLL;
namespace TemuKJD.KJDForms.ProductForms
{
@@ -423,8 +424,8 @@ namespace TemuKJD.KJDForms.ProductForms
//string refere = "https://seller.kuajingmaihuo.com/main/price-manage/price-adjustment";
string refere = "https://agentseller.temu.com/main/adjust-price-manage/order-price";
//return KJDHttpResponse.PostResponse(shop, url, body, refere);
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
//return HttpResponseBLL.PostResponse(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private void panelEx1_Click(object sender, EventArgs e)
@@ -602,7 +603,7 @@ namespace TemuKJD.KJDForms.ProductForms
//string refere = "https://seller.kuajingmaihuo.com/main/price-manage/price-adjustment";
string refere = "https://agentseller.temu.com/main/adjust-price-manage/order-price";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private void dgvStock_CellContentClick(object sender, DataGridViewCellEventArgs e)
@@ -1,303 +0,0 @@
using AllBase;
using AllBase.Model.Result;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace TemuKJD.KJDForms
{
public class KJDHttpResponse
{
public static string PostResponse(ShopLoginInfo shop, string _url, string _data, string referer)
{
HttpWebResponse response = null;
string result;
try
{
string url = _url;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.KeepAlive = true;
request.Headers.Set(HttpRequestHeader.CacheControl, "max-age=0");
request.Headers.Add("Anti-Content", @"0aqAfqFyXcGvBgd9Q0HiJJ7kvWcKK7muUHnJ6oMAdmem0tmm_enmX1DBr-nJNxmoki33dqHTkZU18BU2p8P72Cg2uEZ_acOOBCxGmIs-Gym4EtKpTdZ6kWRCSClS9L6maLm0imx0GIjodHtLnwpx4ayHnhzNnCXEFecZSC8lBRHb9WCAoyY79kMLIWxBMZZSZrR2_LYUJ5UXzf-82ob455f7OvJa6s895N4wiMGR4vbVH8gFN2VuCxS27RpXDa2WCQQQd6XsJPw7amSUaob6oZ2MXuYb9K3ZqoCX5-nJimNZDR0rNCLB13sYgWq9jy0Q3gjnsFY2dJQDh3ewXS2vvf2DN9IAEzInwWTY31Fn0B6-s8DqwIm61OlXsfYt1AYOOyNMLzkw5llaDaqK21f7vspAuXwnJdAdKXJXSyyEimvTyF_AYLp1gkNqBqN1_ik_jc6cKTDJtGUgFjRojR4g4zM7Ww3wfW63WQrJftYhiTIJiS1tZcsceZht3Zu3MsvyxpAbx4bxFrvL0A6OFx752XsVi04Tm6HDhgt7MmpsrTO5WD_KjgjxNX8VNoGndD0OmriAYVn6kwmZXE6Y_khGedxumIGy4sOQI36__CeiuiPIvB8itfOqd7eyqyeCIaEODrh9dSLBQz8AxQ2xt60OTn4HSiPmlwo1J0TFtjUw2DUZB68tdrINb7ugulMsaIwMKr8S0bilSKW6JuYw3oAsmK3daQfJWy3mzVowY1UwPQfTB4Ibz6uRQxHkvhsRTXkrAygGeZIc9S");
request.Headers.Add("sec-ch-ua-platform", @"""Windows""");
request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36";
request.Headers.Add("mallid", shop.ShopId);
request.Headers.Add("sec-ch-ua", @"""Google Chrome"";v=""137"", ""Chromium"";v=""137"", ""Not/A)Brand"";v=""24""");
request.ContentType = "application/json";
request.Headers.Add("sec-ch-ua-mobile", @"?0");
request.Accept = "*/*";
request.Headers.Add("Origin", @"https://seller.kuajingmaihuo.com");
request.Headers.Add("Sec-Fetch-Site", @"same-origin");
request.Headers.Add("Sec-Fetch-Mode", @"cors");
request.Headers.Add("Sec-Fetch-Dest", @"empty");
request.Referer = referer;
request.Headers.Set(HttpRequestHeader.AcceptEncoding, "gzip, deflate, br, zstd");
request.Headers.Set(HttpRequestHeader.AcceptLanguage, "zh-CN,zh;q=0.9");
request.Headers.Set(HttpRequestHeader.Cookie, shop.Cookies);
request.Method = "POST";
request.ServicePoint.Expect100Continue = false;
string body = _data;
byte[] postBytes = System.Text.Encoding.UTF8.GetBytes(body);
request.ContentLength = postBytes.Length;
Stream stream = request.GetRequestStream();
stream.Write(postBytes, 0, postBytes.Length);
stream.Close();
response = (HttpWebResponse)request.GetResponse();
}
catch (WebException ex)
{
if (ex.Status == WebExceptionStatus.ProtocolError)
{
response = (HttpWebResponse)ex.Response;
result = GetProxyHtml.ReadResponse(response);
return result;
}
else return ex.Message;
}
catch (Exception e)
{
if (response != null) response.Close();
return e.Message;
}
result = GetProxyHtml.ReadResponse(response);
return result;
}
/// <summary>
/// 国际版调用接口
/// </summary>
/// <param name="shop"></param>
/// <param name="_url"></param>
/// <param name="_data"></param>
/// <param name="referer"></param>
/// <returns></returns>
public static string PostResponse2(ShopLoginInfo shop, string _url, string _data, string referer)
{
var cookiesArr = shop.Cookies2.Split(';').Select(s => s.Trim());
string cookies = "";
foreach(var cook in cookiesArr)
{
if (cook.StartsWith("mallid"))
cookies += "mallid=" + shop.ShopId + "; ";
else
cookies += cook + "; ";
}
cookies = cookies.Trim().TrimEnd(';');
HttpWebResponse response = null;
string result;
try
{
string url = _url;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.KeepAlive = true;
request.Headers.Set(HttpRequestHeader.CacheControl, "max-age=0");
request.Headers.Add("Anti-Content", @"0aqWfxid0jQ8y99ATT_XGgVxsfy4jtTaQmZlRu9wW2g__9Zt4t2lsnyOevFqnSSUyXZMpPqVZUDOdlErZ7OEmhxNBhLjtyetvpWiGLBc30pcnYGHrW-JahQSJXHSVaz3_sGqB4FzfTWB9eAO-4-p957LPKscrKS9qQPTVDizDQXbx3zEPk64Cn3aUxjMeU5ovt737YczpQRmqtpc7Riil2boSIvCGPfPppc9UscZP5f4SVEsH2sgGTTc4shYwJJ3R-p-dr3nnmhksQlh20daGKfN-yWRSt_VoXlVtkh6KfXOngZhGQwnS45_G9hBY_bXH2zy4ym32OSSWmk0Z2NYg4nW7l30uIUw9mXV2mwYmN9mE1ngv3WMWCAtf5LupF71ciYOdouvE3uTYzqQMjT1i_4nRszBLSRRQbi7wMPIsxJOwR6OUiYv7DfcoerokcZMsplG-PORulS0avRh-BlkZCUGIir2GAmFjtAAt1rYH2evGrbSQo_7vRxiIHi9778FABRQwR8v");
request.Headers.Add("sec-ch-ua-platform", @"""Windows""");
request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36";
request.Headers.Add("mallid", shop.ShopId);
//request.Headers.Add("sec-ch-ua", @"""Google Chrome"";v=""137"", ""Chromium"";v=""137"", ""Not/A)Brand"";v=""24""");
request.Headers.Add("sec-ch-ua", @"""Not;A=Brand"";v=""99"", ""Google Chrome"";v=""139"", ""Chromium"";v=""139""");
request.ContentType = "application/json";
request.Headers.Add("sec-ch-ua-mobile", @"?0");
request.Accept = "*/*";
request.Headers.Add("Origin", @"https://agentseller.temu.com");
request.Headers.Add("Sec-Fetch-Site", @"same-origin");
request.Headers.Add("Sec-Fetch-Mode", @"cors");
request.Headers.Add("Sec-Fetch-Dest", @"empty");
request.Referer = referer;
request.Headers.Set(HttpRequestHeader.AcceptEncoding, "gzip, deflate, br, zstd");
request.Headers.Set(HttpRequestHeader.AcceptLanguage, "zh-CN,zh;q=0.9");
request.Headers.Set(HttpRequestHeader.Cookie, cookies);
request.Method = "POST";
request.ServicePoint.Expect100Continue = false;
string body = _data;
byte[] postBytes = System.Text.Encoding.UTF8.GetBytes(body);
request.ContentLength = postBytes.Length;
Stream stream = request.GetRequestStream();
stream.Write(postBytes, 0, postBytes.Length);
stream.Close();
response = (HttpWebResponse)request.GetResponse();
}
catch (WebException ex)
{
if (ex.Status == WebExceptionStatus.ProtocolError)
{
response = (HttpWebResponse)ex.Response;
result = GetProxyHtml.ReadResponse(response);
return result;
}
else return ex.Message;
}
catch (Exception e)
{
if (response != null) response.Close();
return e.Message;
}
result = GetProxyHtml.ReadResponse(response);
return result;
}
/// <summary>
/// 上传图片接口
/// </summary>
/// <param name="shop"></param>
/// <param name="_url"></param>
/// <param name="_data"></param>
/// <param name="referer"></param>
/// <returns></returns>
public static string PostResponseUpload(ShopLoginInfo shop, string _url, string _data, string referer, string boundary)
{
var cookiesArr = shop.Cookies2.Split(';').Select(s => s.Trim());
string cookies = "";
foreach (var cook in cookiesArr)
{
if (cook.StartsWith("mallid"))
cookies += "mallid=" + shop.ShopId + "; ";
else
cookies += cook + "; ";
}
cookies = cookies.Trim().TrimEnd(';');
HttpWebResponse response = null;
string result;
try
{
string url = _url;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.KeepAlive = true;
request.Headers.Add("sec-ch-ua-platform", @"""Windows""");
request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36";
//request.Headers.Add("mallid", shop.ShopId);
request.Headers.Add("sec-ch-ua", @"""Not)A;Brand"";v=""8"", ""Chromium"";v=""138"", ""Google Chrome"";v=""138""");
request.ContentType = "multipart/form-data; boundary=" + boundary;
request.Headers.Add("sec-ch-ua-mobile", @"?0");
request.Accept = "*/*";
request.Headers.Add("Origin", @"https://agentseller.temu.com");
request.Headers.Add("Sec-Fetch-Site", @"same-origin");
request.Headers.Add("Sec-Fetch-Mode", @"cors");
request.Headers.Add("Sec-Fetch-Dest", @"empty");
request.Referer = referer;
request.Headers.Set(HttpRequestHeader.AcceptEncoding, "gzip, deflate, br, zstd");
request.Headers.Set(HttpRequestHeader.AcceptLanguage, "zh-CN,zh;q=0.9");
request.Headers.Set(HttpRequestHeader.Cookie, cookies);
request.Method = "POST";
request.ServicePoint.Expect100Continue = false;
string body = _data;
WriteMultipartBodyToRequest(request, body);
response = (HttpWebResponse)request.GetResponse();
}
catch (WebException ex)
{
if (ex.Status == WebExceptionStatus.ProtocolError)
{
response = (HttpWebResponse)ex.Response;
result = GetProxyHtml.ReadResponse(response);
return result;
}
else return ex.Message;
}
catch (Exception e)
{
if (response != null) response.Close();
return e.Message;
}
result = GetProxyHtml.ReadResponse(response);
return result;
}
private static void WriteMultipartBodyToRequest(HttpWebRequest request, string body)
{
string[] multiparts = Regex.Split(body, @"<!>");
byte[] bytes;
using (MemoryStream ms = new MemoryStream())
{
foreach (string part in multiparts)
{
if (File.Exists(part))
{
bytes = File.ReadAllBytes(part);
}
else
{
bytes = System.Text.Encoding.UTF8.GetBytes(part.Replace("\r\n", "\n").Replace("\r", "\n").Replace("\n", "\r\n"));
}
ms.Write(bytes, 0, bytes.Length);
}
request.ContentLength = ms.Length;
using (Stream stream = request.GetRequestStream())
{
ms.WriteTo(stream);
}
}
}
public static string GetResponse(ShopLoginInfo shop, string _url, string referer="")
{
HttpWebResponse response = null;
string result;
try
{
string url = _url;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.KeepAlive = true;
//request.Headers.Set(HttpRequestHeader.CacheControl, "max-age=0");
//request.Headers.Add("Anti-Content", @"0aqAfqFyXcGvBgd9Q0HiJJ7kvWcKK7muUHnJ6oMAdmem0tmm_enmX1DBr-nJNxmoki33dqHTkZU18BU2p8P72Cg2uEZ_acOOBCxGmIs-Gym4EtKpTdZ6kWRCSClS9L6maLm0imx0GIjodHtLnwpx4ayHnhzNnCXEFecZSC8lBRHb9WCAoyY79kMLIWxBMZZSZrR2_LYUJ5UXzf-82ob455f7OvJa6s895N4wiMGR4vbVH8gFN2VuCxS27RpXDa2WCQQQd6XsJPw7amSUaob6oZ2MXuYb9K3ZqoCX5-nJimNZDR0rNCLB13sYgWq9jy0Q3gjnsFY2dJQDh3ewXS2vvf2DN9IAEzInwWTY31Fn0B6-s8DqwIm61OlXsfYt1AYOOyNMLzkw5llaDaqK21f7vspAuXwnJdAdKXJXSyyEimvTyF_AYLp1gkNqBqN1_ik_jc6cKTDJtGUgFjRojR4g4zM7Ww3wfW63WQrJftYhiTIJiS1tZcsceZht3Zu3MsvyxpAbx4bxFrvL0A6OFx752XsVi04Tm6HDhgt7MmpsrTO5WD_KjgjxNX8VNoGndD0OmriAYVn6kwmZXE6Y_khGedxumIGy4sOQI36__CeiuiPIvB8itfOqd7eyqyeCIaEODrh9dSLBQz8AxQ2xt60OTn4HSiPmlwo1J0TFtjUw2DUZB68tdrINb7ugulMsaIwMKr8S0bilSKW6JuYw3oAsmK3daQfJWy3mzVowY1UwPQfTB4Ibz6uRQxHkvhsRTXkrAygGeZIc9S");
request.Headers.Add("sec-ch-ua", @"""Google Chrome"";v=""137"", ""Chromium"";v=""137"", ""Not/A)Brand"";v=""24""");
request.Headers.Add("sec-ch-ua-mobile", @"?0");
request.Headers.Add("sec-ch-ua-platform", @"""Windows""");
request.Headers.Add("Upgrade-Insecure-Requests", @"1");
request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36";
request.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7";
request.Headers.Add("Sec-Fetch-Site", @"same-origin");
request.Headers.Add("Sec-Fetch-Mode", @"navigate");
request.Headers.Add("Sec-Fetch-User", @"?1");
request.Headers.Add("Sec-Fetch-Dest", @"document");
request.Headers.Set(HttpRequestHeader.AcceptEncoding, "gzip, deflate, br, zstd");
request.Headers.Set(HttpRequestHeader.AcceptLanguage, "zh-CN,zh;q=0.9");
request.Headers.Set(HttpRequestHeader.Cookie, shop.Cookies);
response = (HttpWebResponse)request.GetResponse();
}
catch (WebException ex)
{
if (ex.Status == WebExceptionStatus.ProtocolError)
{
response = (HttpWebResponse)ex.Response;
result = GetProxyHtml.ReadResponse(response);
return result;
}
else return ex.Message;
}
catch (Exception e)
{
if (response != null) response.Close();
return e.Message;
}
result = GetProxyHtml.ReadResponse(response);
return result;
}
}
}
@@ -17,6 +17,7 @@ using TemuKJD.Extension;
using TemuKJD.BaseForms;
using TemuKJD.KJDForms.ShopForms;
using Work;
using TemuKJD.BLL;
namespace TemuKJD.KJDForms.ProductForms
{
@@ -188,7 +189,7 @@ namespace TemuKJD.KJDForms.ProductForms
string refere = "https://agentseller.temu.com/goods/list";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private void btnSearchPrice_Click(object sender, EventArgs e)
@@ -19,6 +19,7 @@ using System.Windows.Forms;
using TemuKJD.Extension;
using TemuKJD.BaseForms;
using TemuKJD.KJDForms.ShopForms;
using TemuKJD.BLL;
namespace TemuKJD.KJDForms.ProductForms
{
@@ -383,7 +384,7 @@ namespace TemuKJD.KJDForms.ProductForms
string refere = "https://seller.kuajingmaihuo.com/main/order-manage";
return KJDHttpResponse.PostResponse(shop, url, body,refere);
return HttpResponseBLL.PostResponse(shop, url, body,refere);
}
private string GetShopStockList2(ShopLoginInfo shop, int page = 1, string type = "待创建")
@@ -398,7 +399,7 @@ namespace TemuKJD.KJDForms.ProductForms
string refere = "https://agentseller.temu.com/stock/fully-mgt/order-manage-urgency";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
/// <summary>
@@ -416,7 +417,7 @@ namespace TemuKJD.KJDForms.ProductForms
string body = "{\"subPurchaseOrderSnList\":[\"" + subPurchaseOrderSn + "\"]}";
string refere = "https://seller.kuajingmaihuo.com/main/order-manage";
return KJDHttpResponse.PostResponse(shop, url, body, refere);
return HttpResponseBLL.PostResponse(shop, url, body, refere);
}
private string CancelSubPurchaseOrder2(ShopLoginInfo shop, string subPurchaseOrderSn)
@@ -425,7 +426,7 @@ namespace TemuKJD.KJDForms.ProductForms
string body = "{\"subPurchaseOrderSnList\":[\"" + subPurchaseOrderSn + "\"]}";
string refere = "https://agentseller.temu.com/stock/fully-mgt/order-manage";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
/// <summary>
@@ -444,7 +445,7 @@ namespace TemuKJD.KJDForms.ProductForms
string body = @"{""pageNo"":" + page + @",""pageSize"":40,""isLack"":0,""selectStatusList"":[12],""priceAdjustRecentDays"":7}";
string refere = "https://seller.kuajingmaihuo.com/main/sale-manage/main";
return KJDHttpResponse.PostResponse(shop, url, body, refere);
return HttpResponseBLL.PostResponse(shop, url, body, refere);
}
private string GetWarehouseList2(ShopLoginInfo shop, int page = 1)
@@ -454,7 +455,7 @@ namespace TemuKJD.KJDForms.ProductForms
string body = @"{""pageNo"":" + page + @",""pageSize"":10,""isLack"":0,""selectStatusList"":[12],""priceAdjustRecentDays"":7}";
string refere = "https://agentseller.temu.com/stock/fully-mgt/sale-manage/main";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
/// <summary>
@@ -472,7 +473,7 @@ namespace TemuKJD.KJDForms.ProductForms
string body = "{\"productSkcId\":" + subOrderInfo.productSkcId
+ ",\"warehouseGroupId\":" + subOrderInfo.warehouseGroupIdList.FirstOrDefault() + "}";
string refere = "https://seller.kuajingmaihuo.com/main/sale-manage/main";
return KJDHttpResponse.PostResponse(shop, url, body, refere);
return HttpResponseBLL.PostResponse(shop, url, body, refere);
}
private string QueryStockBaseInfo2(ShopLoginInfo shop, WarehouseProductSubOrderInfo subOrderInfo)
@@ -481,7 +482,7 @@ namespace TemuKJD.KJDForms.ProductForms
string body = "{\"productSkcId\":" + subOrderInfo.productSkcId
+ ",\"warehouseGroupId\":" + subOrderInfo.warehouseGroupIdList.FirstOrDefault() + "}";
string refere = "https://agentseller.temu.com/stock/fully-mgt/sale-manage/main";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
/// <summary>
@@ -507,7 +508,7 @@ namespace TemuKJD.KJDForms.ProductForms
body += "],\"warehouseGroupId\":" + subOrderInfo.warehouseGroupIdList.FirstOrDefault() + "}";
string refere = "https://seller.kuajingmaihuo.com/main/sale-manage/main";
return KJDHttpResponse.PostResponse(shop, url, body, refere);
return HttpResponseBLL.PostResponse(shop, url, body, refere);
}
private string CreateStockOrder2(ShopLoginInfo shop, WarehouseProductSubOrderInfo subOrderInfo)
{
@@ -523,7 +524,7 @@ namespace TemuKJD.KJDForms.ProductForms
body += "],\"warehouseGroupId\":" + subOrderInfo.warehouseGroupIdList.FirstOrDefault() + "}";
string refere = "https://agentseller.temu.com/stock/fully-mgt/sale-manage/main";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
/// <summary>
@@ -537,7 +538,7 @@ namespace TemuKJD.KJDForms.ProductForms
string url = "https://agentseller.temu.com/bg-luna-agent-seller/goods/quality/supplyChain/qualityMetrics/pageQuery";
string body = @"{""page"":1,""pageSize"":40,""qualityScoreEnum"":" + qualityScoreEnum + @",""productIds"":[" + productIds + "]}";
string refere = "https://agentseller.temu.com/main/quality/dashboard";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e)
@@ -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
{
@@ -784,7 +784,7 @@
"全部",
"重上",
"已买"});
this.cmbUserNotes.Location = new System.Drawing.Point(1044, 5);
this.cmbUserNotes.Location = new System.Drawing.Point(1044, 8);
this.cmbUserNotes.Margin = new System.Windows.Forms.Padding(0);
this.cmbUserNotes.Name = "cmbUserNotes";
this.cmbUserNotes.Size = new System.Drawing.Size(65, 25);
@@ -801,7 +801,7 @@
"核价成功",
"核价成功(重复)",
"重复"});
this.cmbNotes.Location = new System.Drawing.Point(917, 5);
this.cmbNotes.Location = new System.Drawing.Point(917, 8);
this.cmbNotes.Margin = new System.Windows.Forms.Padding(0);
this.cmbNotes.Name = "cmbNotes";
this.cmbNotes.Size = new System.Drawing.Size(65, 25);
@@ -828,7 +828,7 @@
"已上传",
"草稿箱",
"全部"});
this.cmbStatus.Location = new System.Drawing.Point(814, 5);
this.cmbStatus.Location = new System.Drawing.Point(814, 8);
this.cmbStatus.Margin = new System.Windows.Forms.Padding(0);
this.cmbStatus.Name = "cmbStatus";
this.cmbStatus.Size = new System.Drawing.Size(65, 25);
@@ -1507,7 +1507,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
//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)
@@ -1518,7 +1518,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
//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)
@@ -1529,7 +1529,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
//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 AddProduct(ShopLoginInfo shop, string draftId, TemuProductParam prodParam)
@@ -1540,7 +1540,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
//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 QueryOrAddSpec(ShopLoginInfo shop, string draftId, string parentSpecId, string specName)
@@ -1549,7 +1549,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
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 SearchCategory(ShopLoginInfo shop, string searchStr)
@@ -1558,7 +1558,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
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 btnSetSubSa_Click(object sender, EventArgs e)
@@ -19,9 +19,9 @@ using TemuKJD.Extension;
using TemuKJD.BaseForms;
using TemuKJD.KJDForms.ProductSelectForms;
using TemuKJD.KJDForms.ShopForms;
using TemuKJD.KJDForms.ToolForms;
using TemuKJD.ToolForms;
using Work;
using TemuKJD.BLL;
namespace TemuKJD.KJDForms.ProductThirdSelectForms
{
@@ -17,6 +17,7 @@ using System.Windows.Forms;
using TemuKJD.Extension;
using TemuKJD.BaseForms;
using TemuKJD.KJDForms.ShopForms;
using TemuKJD.BLL;
namespace TemuKJD.KJDForms.SalesCenterForms
{
@@ -1104,7 +1105,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
string body;
body = @"{""needCanEnrollCnt"":true}";
string refere = "https://agentseller.temu.com/activity/marketing-activity";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
/// <summary>
@@ -1132,7 +1133,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
string refere = "https://agentseller.temu.com/activity/marketing-activity/detail-new?type=" + activityType;
if (thematicId != activityType)
refere += "&thematicId=" + thematicId;
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
/// <summary>
@@ -1150,7 +1151,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
string refere = "https://agentseller.temu.com/activity/marketing-activity/detail-new?type=" + activityType;
if (thematicId != activityType)
refere += "&thematicId=" + thematicId;
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
/// <summary>
@@ -1171,7 +1172,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
body = @"{""pageNo"":" + page + @",""pageSize"":40,""isLack"":0,""selectStatusList"":[12],""priceAdjustRecentDays"":7,
""thirtyDaysSaleVolumMin"":0, ""thirtyDaysSaleVolumMax"":" + saleCount + @",""onSalesDurationOfflineGte"":" + onSalesDays + @",""onSalesDurationOfflineLte"":"+ onSalesDays2 + "}";
string refere = "https://agentseller.temu.com/stock/fully-mgt/sale-manage/main";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
}
}
@@ -15,6 +15,7 @@ using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using TemuKJD.BaseForms;
using TemuKJD.BLL;
namespace TemuKJD.KJDForms.ShopForms
{
@@ -571,8 +572,8 @@ namespace TemuKJD.KJDForms.ShopForms
string refere = "https://seller.kuajingmaihuo.com/wms/stock-mgt/return-package-detail";
return KJDHttpResponse.PostResponse(shop, url, body, refere);
//return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse(shop, url, body, refere);
//return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private string GetProductList(ShopLoginInfo shop, string skcIds, int page = 1)
@@ -584,8 +585,8 @@ namespace TemuKJD.KJDForms.ShopForms
string refere = "https://agentseller.temu.com/goods/list";
//return KJDHttpResponse.PostResponse(shop, url, body, refere);
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
//return HttpResponseBLL.PostResponse(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
public static string ReturnPackagePostResponse(ShopLoginInfo shop, string _url, string _data, string referer, string timeStamp, string sign)
+3 -3
View File
@@ -694,7 +694,7 @@ namespace TemuKJD.KJDForms.ShopForms
string url = "https://seller.kuajingmaihuo.com/bg/quiet/api/mms/userInfo";
string refere = "https://seller.kuajingmaihuo.com/";
string body = @"{}";
return KJDHttpResponse.PostResponse(shop, url, body, refere);
return HttpResponseBLL.PostResponse(shop, url, body, refere);
}
/// <summary>
@@ -707,7 +707,7 @@ namespace TemuKJD.KJDForms.ShopForms
string url = "https://agentseller.temu.com/api/seller/auth/userInfo";
string refere = "https://agentseller.temu.com/";
string body = @"{}";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
public static string GetShopLogin2Code(ShopLoginInfo shop)
@@ -715,7 +715,7 @@ namespace TemuKJD.KJDForms.ShopForms
string url = "https://seller.kuajingmaihuo.com/bg/quiet/api/auth/obtainCode";
string refere = "https://seller.kuajingmaihuo.com/settle/seller-login?redirectUrl=https%3A%2F%2Fagentseller.temu.com%2F&region=1&source=https%3A%2F%2Fagentseller.temu.com%2Fmain%2Fauthentication%3FredirectUrl%3Dhttps%253A%252F%252Fagentseller.temu.com%252F";
string body = @"{""redirectUrl"":""https://agentseller.temu.com/main/authentication""}";
return KJDHttpResponse.PostResponse(shop, url, body, refere);
return HttpResponseBLL.PostResponse(shop, url, body, refere);
}
private void ShopListForm_VisibleChanged(object sender, EventArgs e)
+4 -1
View File
@@ -570,7 +570,10 @@ namespace TemuKJD.KJDForms.ShopForms
if (this.shop != null && data.Contains("\"success\":true"))
{
var maskMobile = BaseRegex.GetStringJson(ref data, "maskOwnerMobile");
if (shop.LoginName.EndsWith(maskMobile))
var maskMobile2 = "||||" + BaseRegex.GetStringJson(ref data, "maskMobile").ParseToString();
if (maskMobile2.Contains("*"))
maskMobile2 = maskMobile2.Substring(maskMobile2.LastIndexOf("*")).Trim('*');
if (shop.LoginName.EndsWith(maskMobile) || shop.LoginName.EndsWith(maskMobile2))
{
lstShopCompany.Clear();
var jObj = JObject.Parse(data);
@@ -17,6 +17,7 @@ using TemuKJD.Extension;
using TemuKJD.BaseForms;
using TemuKJD.UserComponent;
using Work;
using TemuKJD.BLL;
namespace TemuKJD.KJDForms.ShopForms.Statistics
{
@@ -677,7 +678,7 @@ namespace TemuKJD.KJDForms.ShopForms.Statistics
string body = @"{}";
string refere = "https://agentseller.temu.com/";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private string GetFundDaily(ShopLoginInfo shop, DateTime date)
@@ -686,7 +687,7 @@ namespace TemuKJD.KJDForms.ShopForms.Statistics
string body = @"{""month"":""" + date.ToString("yyyy-MM") + @"""}";
string refere = "https://seller.kuajingmaihuo.com/labor/bill";
return KJDHttpResponse.PostResponse(shop, url, body, refere);
return HttpResponseBLL.PostResponse(shop, url, body, refere);
}
private string GetFundMonthly(ShopLoginInfo shop, DateTime date)
@@ -695,7 +696,7 @@ namespace TemuKJD.KJDForms.ShopForms.Statistics
string body = @"{""year"":""" + date.ToString("yyyy") + @"""}";
string refere = "https://seller.kuajingmaihuo.com/labor/bill";
return KJDHttpResponse.PostResponse(shop, url, body, refere);
return HttpResponseBLL.PostResponse(shop, url, body, refere);
}
/// <summary>
@@ -709,7 +710,7 @@ namespace TemuKJD.KJDForms.ShopForms.Statistics
string body = @"{}";
string refere = "https://seller.kuajingmaihuo.com/labor/account";
return KJDHttpResponse.PostResponse(shop, url, body, refere);
return HttpResponseBLL.PostResponse(shop, url, body, refere);
}
/// <summary>
/// 提现记录
@@ -722,7 +723,7 @@ namespace TemuKJD.KJDForms.ShopForms.Statistics
string body = @"{""page"":" + page + @",""pageSize"":100}";
string refere = "https://seller.kuajingmaihuo.com/labor/account";
return KJDHttpResponse.PostResponse(shop, url, body, refere);
return HttpResponseBLL.PostResponse(shop, url, body, refere);
}
private string GetWarehouseList2(ShopLoginInfo shop, int page = 1, int pageSize=40)
@@ -732,7 +733,7 @@ namespace TemuKJD.KJDForms.ShopForms.Statistics
string body = @"{""pageNo"":" + page + @",""pageSize"":" + pageSize + @",""isLack"":0,""selectStatusList"":[12],""priceAdjustRecentDays"":7}";
string refere = "https://agentseller.temu.com/stock/fully-mgt/sale-manage/main";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
/// <summary>
@@ -746,7 +747,7 @@ namespace TemuKJD.KJDForms.ShopForms.Statistics
string url = "https://agentseller.temu.com/bg-luna-agent-seller/goods/quality/supplyChain/qualityMetrics/pageQuery";
string body = @"{""page"":1,""pageSize"":40,""qualityScoreEnum"":" + qualityScoreEnum + @",""productIds"":[" + productIds + "]}";
string refere = "https://agentseller.temu.com/main/quality/dashboard";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e)
@@ -12,6 +12,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TemuKJD.BLL;
using TemuKJD.Extension;
namespace TemuKJD.KJDForms.ShopForms.Statistics
@@ -287,7 +288,7 @@ namespace TemuKJD.KJDForms.ShopForms.Statistics
string body = @"{""pageNo"":" + page + @",""pageSize"":10,""isLack"":0,""selectStatusList"":[12],""priceAdjustRecentDays"":7}";
string refere = "https://agentseller.temu.com/stock/fully-mgt/sale-manage/main";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private string GetShopStockList(ShopLoginInfo shop, int page = 1)
@@ -299,7 +300,7 @@ namespace TemuKJD.KJDForms.ShopForms.Statistics
string refere = "https://agentseller.temu.com/stock/fully-mgt/order-manage";
return KJDHttpResponse.PostResponse2(shop, url, body, refere);
return HttpResponseBLL.PostResponse2(shop, url, body, refere);
}
private void dgvShop_CellContentClick(object sender, DataGridViewCellEventArgs e)