1688商品采集

This commit is contained in:
wule committed 2026-03-18 20:45:32 +08:00
1 parent 53736cff6e
commit c489c30bf1
35 files changed
+4095 -254

No files matched your search

+6 -7
View File
@@ -1016,7 +1016,8 @@ namespace TemuKJD.ToolForms
List<DataGridViewRow> rowLst = new List<DataGridViewRow>();
rowLst.AddRange(dgvProduct.Rows.Cast<DataGridViewRow>().Where(r => r.Cells["colCheck"].Value.ParseToBool() == true));
//if (cancellationTokenSource == null || cancellationTokenSource.IsCancellationRequested)
if (cancellationTokenSource != null)
cancellationTokenSource.Cancel();
cancellationTokenSource = new CancellationTokenSource();
Task.Run(() =>
{
@@ -1057,11 +1058,9 @@ namespace TemuKJD.ToolForms
html = GetHtml.PostUtf8(existUrl, existData);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
{
//Invoke(new Action(() =>
//{
// row.Cells["colMsg"].Value = "采集详情失败,产品数据库连接失败";
//}));
//continue;
prod.getProductMsg = "采集详情失败,产品数据库连接失败";
try { row.Cells["colMsg"].Value = prod.getProductMsg; } catch { }
continue;
}
else
{
@@ -1076,7 +1075,7 @@ namespace TemuKJD.ToolForms
}
}
Thread.Sleep(Randomx.GetId(500, 1500));
// 休眠
// 额外休眠
Thread.Sleep(getDetailWait * 1000);
// 爆款专区查询真实供应商coid和供应商退货地址