jit制造商报错问题修复 temu已报名直通车商品查询优化 jit数据库商品查询全部商品bug修复 jit订单数据库逻辑优化 拼多多上传加入直通车等待时间延长 其他部分优化

This commit is contained in:
wule committed 2025-12-08 17:35:51 +08:00
1 parent 85d0c2d86a
commit 4dde0936ed
24 files changed
+1905 -585

No files matched your search

+22 -3
View File
@@ -563,6 +563,7 @@ namespace TemuKJD.KJDForms.ProductForms
}));
int page = 1;
int total = 0;
int totalPage = 1;
int pageSize = 40;
bool isError = false;
@@ -643,7 +644,22 @@ namespace TemuKJD.KJDForms.ProductForms
if (jArr == null)
jArr = new JArray();
}
catch (Exception ex) { BaseMsgForm.ShowError(ex.Message); }
catch (Exception ex)
{
BaseMsgForm.ShowError(ex.Message);
var rows = this.dgvShop.Rows.Cast<DataGridViewRow>().Where(r => r.Cells["colShopId"].Value.ToString() == shop.ShopId);
foreach (var row in rows)
{
row.Cells["colMessage"].Value = "直通车查询失败 " + ex.Message;
}
this.Invoke(new Action(() =>
{
this.statusBar.lblTaskStatus.Text = "店铺 " + shop.ShopAccount + " 直通车查询失败 " + ex.Message;
}));
page++;
Thread.Sleep(1000);
continue;
}
List<string> spuIdLst = new List<string>();
foreach (var item in jArr)
{
@@ -657,7 +673,6 @@ namespace TemuKJD.KJDForms.ProductForms
//string url = pInfo.image.Replace("https", "http");
//var image = Image.FromStream(WebRequest.Create(url).GetResponse().GetResponseStream());
Invoke(new Action(() =>
{
int rowId = this.dgvAds.Rows.Add(
@@ -742,9 +757,13 @@ namespace TemuKJD.KJDForms.ProductForms
}
}
int total = BaseRegex.GetStringJson(ref jsonStr, "total").ParseToInt();
total = BaseRegex.GetStringJson(ref jsonStr, "total").ParseToInt();
totalPage = Math.Ceiling(1.0 * total / pageSize).ParseToInt();
}
this.Invoke(new Action(() =>
{
this.statusBar.lblTaskStatus.Text = "正在查询店铺 " + shop.ShopAccount + " 直通车商品 " + page + "/" + totalPage + " 共 " + total + " 件";
}));
page++;
}
@@ -265,7 +265,7 @@ namespace TemuKJD.KJDForms.ProductForms.TemuJitSubForms
j_template_edit.Add("punish_time", wait_task.punish_time);
j_template_edit.Add("sale_effect_info", JObject.Parse(JsonHelper.SerializeObject(wait_task.sale_effect_info)));
j_template_edit.Add("rep_detail_list", new JArray());
var rep_detail = temp.rep_detail_list.FirstOrDefault(r => r.rep_name == cmbMakerInfo.Text.Trim());
var rep_detail = temp.rep_detail_list.FirstOrDefault(r => r.rep_name.Trim() == cmbMakerInfo.Text.Trim());
rep_detail_param rep_param = new rep_detail_param { rep_id = rep_detail?.rep_id, rep_name = rep_detail?.rep_name };
(j_template_edit["rep_detail_list"] as JArray).Add(JObject.Parse(JsonHelper.SerializeObject(rep_param)));
}
@@ -299,7 +299,7 @@ namespace TemuKJD.KJDForms.ProductForms.TemuJitSubForms
if (!IsAuto)
{
BaseMsgForm.ShowInfo("修改成功!");
this.Close();
Invoke(new Action(() => { this.Close(); }));
}
}
else