书籍类目采集和入库

This commit is contained in:
wule committed 2026-01-17 22:47:41 +08:00
1 parent 6ce238ca01
commit dbc954a200
19 files changed
+664 -1205

No files matched your search

+3 -1
View File
@@ -13,7 +13,7 @@ namespace TemuKJD.BLL
{
public class PDDProdFormConverter
{
public string PddConvert(string outProdJson, bool UpdateOldData = true)
public string PddConvert(string outProdJson, bool UpdateOldData = true, string specialProdType = null)
{
PDDFrontProductInfo frontProdInfo = null;
try
@@ -365,6 +365,8 @@ namespace TemuKJD.BLL
"&sale_count=" + HttpUtility.UrlEncode(prodInfo.sale_count, Encoding.UTF8) +
"&sale_count_text=" + HttpUtility.UrlEncode(prodInfo.sale_count_text, Encoding.UTF8) +
"&product_get_type=" + HttpUtility.UrlEncode("外部数据", Encoding.UTF8);
if (!string.IsNullOrEmpty(specialProdType))
data += "&special_prod_type=" + HttpUtility.UrlEncode(specialProdType, Encoding.UTF8);
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))