微信筛选店铺 店铺分组 运费加价
This commit is contained in:
1 parent
b4fa5cacb1
commit
afaabea1fa
33 files changed
+1338
-536
No files matched your search
@@ -523,6 +523,9 @@ namespace TemuKJD.ToolForms
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
break;
|
||||
|
||||
if (row.Index % 20 == 0)
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("supplier_product_list_" + MainForm.ProcessCount, lstJSTListProductInfo);
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.statusBar.lblTaskStatus.Text = "正在入库表格第 " + (row.Index + 1) + " 行数据";
|
||||
@@ -533,7 +536,13 @@ namespace TemuKJD.ToolForms
|
||||
if (prod == null || prod.dbProduct == null || prod.dbProduct.product_json.Length < 10)
|
||||
continue;
|
||||
var dbProd = prod.dbProduct;
|
||||
|
||||
|
||||
if (prod.getProductMsg.Contains("入库成功") || prod.getProductMsg.Contains("已存在相同id商品"))
|
||||
{
|
||||
if (!chkOverride.Checked)
|
||||
continue;
|
||||
}
|
||||
|
||||
bool isExist = false;
|
||||
var existUrl = BaseClass.BuildObjString("product/get_product_list");
|
||||
string existData = UserLogin.GetSignaturex() + "&search_spu=" + prod.spuId;
|
||||
@@ -564,9 +573,11 @@ namespace TemuKJD.ToolForms
|
||||
}
|
||||
else
|
||||
{
|
||||
//入库成功 已存在相同id商品
|
||||
prod.getProductMsg = "已存在相同id商品,跳过";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row.Cells["colMsg"].Value = "已存在相同id商品,跳过";
|
||||
row.Cells["colMsg"].Value = prod.getProductMsg;
|
||||
}));
|
||||
continue;
|
||||
}
|
||||
@@ -606,6 +617,7 @@ namespace TemuKJD.ToolForms
|
||||
"&sale_count=" + dbProd.sale_count +
|
||||
"&sale_count_text=" + HttpUtility.UrlEncode(dbProd.sale_count_text, Encoding.UTF8) +
|
||||
"&main_img=" + HttpUtility.UrlEncode(dbProd.main_img, Encoding.UTF8) +
|
||||
"&wx_safe_status=" + HttpUtility.UrlEncode("安全商品", Encoding.UTF8) +
|
||||
"&product_get_type=" + HttpUtility.UrlEncode("厂商直采", Encoding.UTF8);
|
||||
if (!isExist)
|
||||
{
|
||||
@@ -640,13 +652,14 @@ namespace TemuKJD.ToolForms
|
||||
}
|
||||
else
|
||||
{
|
||||
string msg = "商品入库成功!";
|
||||
prod.getProductMsg = "商品入库成功!";
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row.Cells["colMsg"].Value = msg;
|
||||
row.Cells["colMsg"].Value = prod.getProductMsg;
|
||||
}));
|
||||
}
|
||||
}
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("supplier_product_list_" + MainForm.ProcessCount, lstJSTListProductInfo);
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
@@ -712,6 +725,9 @@ namespace TemuKJD.ToolForms
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
break;
|
||||
|
||||
if (row.Index % 20 == 0)
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("supplier_product_list_" + MainForm.ProcessCount, lstJSTListProductInfo);
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.statusBar.lblTaskStatus.Text = "正在采集表格第 " + (row.Index + 1) + " 行详情数据";
|
||||
@@ -727,6 +743,8 @@ namespace TemuKJD.ToolForms
|
||||
{
|
||||
if (prod.getProductMsg == "商品已存在,跳过详情采集")
|
||||
continue;
|
||||
if (prod.getProductMsg.Contains("入库成功") || prod.getProductMsg.Contains("已存在相同id商品"))
|
||||
continue;
|
||||
|
||||
bool isExist = false;
|
||||
var existUrl = BaseClass.BuildObjString("product/get_product_list");
|
||||
@@ -858,9 +876,6 @@ namespace TemuKJD.ToolForms
|
||||
try { row.Cells["colMsg"].Value = prod.getProductMsg; } catch { }
|
||||
}));
|
||||
}
|
||||
|
||||
if (row.Index % 20 == 0 )
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("supplier_product_list_" + MainForm.ProcessCount, lstJSTListProductInfo);
|
||||
}
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("supplier_product_list_" + MainForm.ProcessCount, lstJSTListProductInfo);
|
||||
Invoke(new Action(() =>
|
||||
@@ -1068,5 +1083,22 @@ namespace TemuKJD.ToolForms
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
private void btnCancelSelect_Click(object sender, EventArgs e)
|
||||
{
|
||||
Task.Run(() => {
|
||||
|
||||
foreach(DataGridViewRow row in dgvProduct.Rows)
|
||||
{
|
||||
if (row.Cells["colMsg"].Value.ParseToString().Contains("入库成功") || row.Cells["colMsg"].Value.ParseToString().Contains("已存在相同id商品"))
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row.Cells["colcheck"].Value = false;
|
||||
}));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user