拼多多商品获取逻辑
This commit is contained in:
1 parent
840636d5c9
commit
6639224771
68 files changed
+7132
-692
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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®ion=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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user