拼多多版权限管理 指定类目上传 ai图片上传权限管理
This commit is contained in:
1 parent
58798805ed
commit
ce23b0a49a
28 files changed
+1265
-483
No files matched your search
+21
-6
@@ -42,6 +42,7 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.chkDown981Failed = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.txtLowPriceAddPriceTimes = new System.Windows.Forms.TextBox();
|
||||
this.txtLowPriceAddMorePrice = new System.Windows.Forms.TextBox();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
@@ -197,6 +198,7 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.ucGroupBoxEx2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucGroupBoxEx2.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||
this.ucGroupBoxEx2.Controls.Add(this.chkDown981Failed);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.txtLowPriceAddPriceTimes);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.txtLowPriceAddMorePrice);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.label8);
|
||||
@@ -243,12 +245,24 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
this.ucGroupBoxEx2.TabStop = false;
|
||||
this.ucGroupBoxEx2.Text = "活动价格配置";
|
||||
//
|
||||
// txtLowPriceAddTimes
|
||||
// chkDown981Failed
|
||||
//
|
||||
this.chkDown981Failed.AutoSize = true;
|
||||
this.chkDown981Failed.Checked = true;
|
||||
this.chkDown981Failed.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.chkDown981Failed.Location = new System.Drawing.Point(694, 16);
|
||||
this.chkDown981Failed.Name = "chkDown981Failed";
|
||||
this.chkDown981Failed.Size = new System.Drawing.Size(144, 21);
|
||||
this.chkDown981Failed.TabIndex = 938;
|
||||
this.chkDown981Failed.Text = "下架报名981失败商品";
|
||||
this.chkDown981Failed.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// txtLowPriceAddPriceTimes
|
||||
//
|
||||
this.txtLowPriceAddPriceTimes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.txtLowPriceAddPriceTimes.Location = new System.Drawing.Point(770, 89);
|
||||
this.txtLowPriceAddPriceTimes.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtLowPriceAddPriceTimes.Name = "txtLowPriceAddTimes";
|
||||
this.txtLowPriceAddPriceTimes.Name = "txtLowPriceAddPriceTimes";
|
||||
this.txtLowPriceAddPriceTimes.Size = new System.Drawing.Size(31, 23);
|
||||
this.txtLowPriceAddPriceTimes.TabIndex = 924;
|
||||
this.txtLowPriceAddPriceTimes.Text = "1.0";
|
||||
@@ -335,7 +349,7 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
//
|
||||
this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(831, 18);
|
||||
this.label5.Location = new System.Drawing.Point(944, 18);
|
||||
this.label5.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(20, 17);
|
||||
@@ -346,7 +360,7 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
//
|
||||
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(713, 18);
|
||||
this.label3.Location = new System.Drawing.Point(838, 18);
|
||||
this.label3.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(80, 17);
|
||||
@@ -355,10 +369,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
//
|
||||
// txtSleepTime
|
||||
//
|
||||
this.txtSleepTime.Location = new System.Drawing.Point(793, 15);
|
||||
this.txtSleepTime.Location = new System.Drawing.Point(918, 15);
|
||||
this.txtSleepTime.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtSleepTime.Name = "txtSleepTime";
|
||||
this.txtSleepTime.Size = new System.Drawing.Size(38, 23);
|
||||
this.txtSleepTime.Size = new System.Drawing.Size(26, 23);
|
||||
this.txtSleepTime.TabIndex = 891;
|
||||
this.txtSleepTime.Text = "1";
|
||||
this.txtSleepTime.TextChanged += new System.EventHandler(this.txtSleepTime_TextChanged);
|
||||
@@ -1748,5 +1762,6 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.Label label13;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private UserComponent.UcCheckBox chkDown981Failed;
|
||||
}
|
||||
}
|
||||
@@ -636,10 +636,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
Thread.Sleep((moreSleepTime * 1000).ParseToInt());
|
||||
for (int i = 0; i < 5 && activityRst1.Contains("频繁"); i++)
|
||||
{
|
||||
int totalPage = 9999;
|
||||
int page = 1;
|
||||
if (i > 0)
|
||||
{
|
||||
int totalPage = 9999;
|
||||
int page = 1;
|
||||
int readCount = 0;
|
||||
while (page < totalPage)
|
||||
{
|
||||
@@ -770,10 +770,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
Thread.Sleep((moreSleepTime * 1000).ParseToInt());
|
||||
for (int i = 0; i < 5 && activityRst1.Contains("频繁"); i++)
|
||||
{
|
||||
int totalPage = 9999;
|
||||
int page = 1;
|
||||
if (i > 0)
|
||||
{
|
||||
int totalPage = 9999;
|
||||
int page = 1;
|
||||
int readCount = 0;
|
||||
while (page < totalPage)
|
||||
{
|
||||
@@ -2961,6 +2961,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
else
|
||||
row.Cells["colOpResult"].Value = "源商品不存在";
|
||||
}));
|
||||
if (chkDown981Failed.Checked && actProd != null)
|
||||
{
|
||||
DownProd(shop, new List<long?>() { actProd.goods_id });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -2981,6 +2985,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
else
|
||||
row.Cells["colOpResult"].Value = "匹配到多个同货号源商品无法确定,跳过";
|
||||
}));
|
||||
if (chkDown981Failed.Checked)
|
||||
{
|
||||
DownProd(shop, new List<long?>() { actProd.goods_id });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
var dbProd = dbProds.FirstOrDefault();
|
||||
@@ -2995,6 +3003,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
{
|
||||
row.Cells["colOpResult"].Value = "商品查询错误 " + convertRst;
|
||||
}));
|
||||
if (chkDown981Failed.Checked)
|
||||
{
|
||||
DownProd(shop, new List<long?>() { actProd.goods_id });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@@ -3012,6 +3024,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
{
|
||||
row.Cells["colOpResult"].Value = "商品格式化错误 " + ex.Message;
|
||||
}));
|
||||
if (chkDown981Failed.Checked)
|
||||
{
|
||||
DownProd(shop, new List<long?>() { actProd.goods_id });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -3048,9 +3064,17 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
{
|
||||
shippingTemplateJson = JsonHelper.SerializeObject(JsonHelper.JObjectParse(htmlShipping)["data"]);
|
||||
}
|
||||
catch
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row.Cells["colOpResult"].Value = "运费模板获取失败 " + ex.Message;
|
||||
}));
|
||||
if (chkDown981Failed.Checked)
|
||||
{
|
||||
DownProd(shop, new List<long?>() { actProd.goods_id });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3072,6 +3096,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
{
|
||||
row.Cells["colOpResult"].Value = "运费模板获取失败 " + errMsg;
|
||||
}));
|
||||
if (chkDown981Failed.Checked)
|
||||
{
|
||||
DownProd(shop, new List<long?>() { actProd.goods_id });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
try
|
||||
@@ -3091,6 +3119,15 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row.Cells["colOpResult"].Value = "运费模板获取失败 " + ex.Message;
|
||||
}));
|
||||
if (chkDown981Failed.Checked)
|
||||
{
|
||||
DownProd(shop, new List<long?>() { actProd.goods_id });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3116,6 +3153,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
{
|
||||
row.Cells["colOpResult"].Value = "运费模板获取失败 " + ex.Message;
|
||||
}));
|
||||
if (chkDown981Failed.Checked)
|
||||
{
|
||||
DownProd(shop, new List<long?>() { actProd.goods_id });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@@ -3125,6 +3166,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
{
|
||||
row.Cells["colOpResult"].Value = "运费模板获取失败 未获取到";
|
||||
}));
|
||||
if (chkDown981Failed.Checked)
|
||||
{
|
||||
DownProd(shop, new List<long?>() { actProd.goods_id });
|
||||
}
|
||||
continue;
|
||||
}
|
||||
prodInfo.ship_price = shipPrice;
|
||||
@@ -3253,6 +3298,9 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
break;
|
||||
}
|
||||
|
||||
//任何环节报名失败直接下架,包括频繁
|
||||
var Act981FailedIds = new List<long?>();
|
||||
|
||||
// 检测是否可以报名活动
|
||||
string checkActivityRst = "{\"success\":true,\"msg\":\"活动校验成功\",\"fail_list\":[]}";
|
||||
checkActivityRst = CheckActivity20981(shop, prodParamLst);
|
||||
@@ -3265,14 +3313,20 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
foreach (var row in rowOperateLst)
|
||||
row.Cells["colOpResult"].Value = BaseRegex.GetStringJson(ref checkActivityRst, "msg");
|
||||
}));
|
||||
|
||||
foreach (var prodParam in prodParamLst)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
var failStr = JsonHelper.SerializeObject(JsonHelper.JObjectParse(checkActivityRst)["fail_list"]);
|
||||
var failList = JsonHelper.DeserializeJsonToList<AddActivityFailInfo>(failStr);
|
||||
if (failList == null)
|
||||
failList = new List<AddActivityFailInfo>();
|
||||
|
||||
failList = new List<AddActivityFailInfo>();
|
||||
|
||||
if (1 == 1)
|
||||
{
|
||||
foreach (var row in rowOperateLst)
|
||||
@@ -3289,6 +3343,7 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
|
||||
// 删除校验未通过的商品
|
||||
var goodsIds = failList.Select(f => f.goods_id).ToList();
|
||||
Act981FailedIds.AddRange(goodsIds);
|
||||
prodParamLst.RemoveAll(p => goodsIds.Contains(p.goods_id));
|
||||
// 筛除校验未通过的商品所在的列表行
|
||||
rowOperateLst = rowOperateLst.Where(r => prodParamLst.Any(p => p.goods_id == r.Cells["colSpuId"].Value.ParseToLong())).ToList();
|
||||
@@ -3297,35 +3352,9 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
goodsIds = failList.Where(f => f.error_msg.Contains("所有活动报价均低于产品期望价格")).Select(f => f.goods_id).ToList();
|
||||
if (chkDownNoPrice.Checked)
|
||||
{
|
||||
if (goodsIds.Count > 0)
|
||||
{
|
||||
var rws = dgvActProduct.Rows.Cast<DataGridViewRow>().Where(r => goodsIds.Contains(r.Cells["colSpuId"].Value.ParseToLong())).ToList();
|
||||
var downProdRst = "";
|
||||
for (int i = 0; i < 5 && !downProdRst.Contains("\"success\":true"); i++)
|
||||
{
|
||||
Thread.Sleep(Randomx.GetId(500, 1500));
|
||||
downProdRst = PDDProductUpDownForm.down_goods(shop, string.Join(",", goodsIds));
|
||||
}
|
||||
if (!downProdRst.Contains("\"success\":true"))
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var error = BaseRegex.GetStringJson(ref downProdRst, "errorMsg");
|
||||
if (string.IsNullOrEmpty(error))
|
||||
error = downProdRst;
|
||||
foreach (var rw in rws)
|
||||
rw.Cells["colOpResult"].Value += " 尝试下架失败 " + error;
|
||||
}));
|
||||
}
|
||||
else
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
foreach (var rw in rws)
|
||||
rw.Cells["colOpResult"].Value += " 下架成功";
|
||||
}));
|
||||
}
|
||||
}
|
||||
// 检测失败的从实际报名失败的列表中移除。
|
||||
Act981FailedIds.RemoveAll(fId => goodsIds.Contains(fId));
|
||||
DownProd(shop, goodsIds);
|
||||
}
|
||||
prodParamLst.RemoveAll(p => goodsIds.Contains(p.goods_id));
|
||||
|
||||
@@ -3368,7 +3397,10 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
if (!mdyQuantityRst.Contains("\"success\":true"))
|
||||
{
|
||||
goodsIds.Add(prodParam.goods_id);
|
||||
Act981FailedIds.Add(prodParam.goods_id);
|
||||
var error = BaseRegex.GetStringJson(ref mdyQuantityRst, "error_msg");
|
||||
if (string.IsNullOrEmpty(error))
|
||||
error = BaseRegex.GetStringJson(ref mdyQuantityRst, "errorMsg");
|
||||
if (string.IsNullOrEmpty(error))
|
||||
error = mdyQuantityRst;
|
||||
|
||||
@@ -3391,6 +3423,7 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
}
|
||||
}
|
||||
}
|
||||
Act981FailedIds.AddRange(goodsIds);
|
||||
prodParamLst.RemoveAll(p => goodsIds.Contains(p.goods_id));
|
||||
// 筛除修改未给价sku失败的商品所在的列表行
|
||||
rowOperateLst = rowOperateLst.Where(r => prodParamLst.Any(p => p.goods_id == r.Cells["colSpuId"].Value.ParseToLong())).ToList();
|
||||
@@ -3482,36 +3515,72 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
continue;
|
||||
}
|
||||
}
|
||||
Act981FailedIds.AddRange(goodsIds);
|
||||
// 移除修改库存失败的商品
|
||||
prodParamLst.RemoveAll(p => goodsIds.Contains(p.goods_id));
|
||||
rowOperateLst = rowOperateLst.Where(r => prodParamLst.Any(p => p.goods_id == r.Cells["colSpuId"].Value.ParseToLong())).ToList();
|
||||
}
|
||||
|
||||
if (prodParamLst.Count == 0)
|
||||
// 剩余商品数量大于0才报名活动
|
||||
if (prodParamLst.Count > 0)
|
||||
{
|
||||
continue;
|
||||
|
||||
string activityRsts = SignActivity(shop, prodParamLst, sign22347, sign20981, sign21365, sign15996, sign23513, sign23730, sign23456);
|
||||
failList = JsonHelper.DeserializeJsonToList<AddActivityFailInfo>(activityRsts);
|
||||
foreach (var prodParam in prodParamLst)
|
||||
{
|
||||
var prodActRsts = failList.Where(f => f.goods_id == prodParam.goods_id).ToList();
|
||||
var actSuccessStr = "";
|
||||
var actFailStr = "";
|
||||
foreach (var actRst in prodActRsts)
|
||||
{
|
||||
if (actRst.error_msg.Contains("报名成功"))
|
||||
actSuccessStr += " " + actRst.error_msg;
|
||||
else
|
||||
actFailStr += "\r\n" + actRst.error_msg;
|
||||
}
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var rws = rowOperateLst.Where(r => prodParam.goods_id == r.Cells["colSpuId"].Value.ParseToLong()).ToList();
|
||||
foreach (var rw in rws)
|
||||
rw.Cells["colOpResult"].Value = (actSuccessStr + actFailStr).Trim('\r', '\n', ' ');
|
||||
}));
|
||||
|
||||
if (!actSuccessStr.Contains("981报名成功"))
|
||||
{
|
||||
Act981FailedIds.Add(prodParam.goods_id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
string activityRsts = SignActivity(shop, prodParamLst, sign22347, sign20981, sign21365, sign15996, sign23513, sign23730, sign23456);
|
||||
failList = JsonHelper.DeserializeJsonToList<AddActivityFailInfo>(activityRsts);
|
||||
foreach (var prodParam in prodParamLst)
|
||||
if (Act981FailedIds.Count > 0 && chkDown981Failed.Checked)
|
||||
{
|
||||
var prodActRsts = failList.Where(f => f.goods_id == prodParam.goods_id);
|
||||
var actSuccessStr = "";
|
||||
var actFailStr = "";
|
||||
foreach (var actRst in prodActRsts)
|
||||
var rws = dgvActProduct.Rows.Cast<DataGridViewRow>().Where(r => Act981FailedIds.Contains(r.Cells["colSpuId"].Value.ParseToLong())).ToList();
|
||||
var downProdRst = "";
|
||||
for (int i = 0; i < 5 && !downProdRst.Contains("\"success\":true"); i++)
|
||||
{
|
||||
if (actRst.error_msg.Contains("报名成功"))
|
||||
actSuccessStr += " " + actRst.error_msg;
|
||||
else
|
||||
actFailStr += "\r\n" + actRst.error_msg;
|
||||
Thread.Sleep(Randomx.GetId(500, 1500));
|
||||
downProdRst = PDDProductUpDownForm.down_goods(shop, string.Join(",", Act981FailedIds));
|
||||
}
|
||||
Invoke(new Action(() =>
|
||||
if (!downProdRst.Contains("\"success\":true"))
|
||||
{
|
||||
var rws = rowOperateLst.Where(r => prodParam.goods_id == r.Cells["colSpuId"].Value.ParseToLong()).ToList();
|
||||
foreach (var rw in rws)
|
||||
rw.Cells["colOpResult"].Value = (actSuccessStr + actFailStr).Trim('\r', '\n', ' ');
|
||||
}));
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var error = BaseRegex.GetStringJson(ref downProdRst, "errorMsg");
|
||||
if (string.IsNullOrEmpty(error))
|
||||
error = downProdRst;
|
||||
foreach (var rw in rws)
|
||||
rw.Cells["colOpResult"].Value = "尝试下架失败 " + error + " " + rw.Cells["colOpResult"].Value.ParseToString();
|
||||
}));
|
||||
}
|
||||
else
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
foreach (var rw in rws)
|
||||
rw.Cells["colOpResult"].Value = "下架成功 " + rw.Cells["colOpResult"].Value.ParseToString();
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -3537,6 +3606,39 @@ namespace TemuKJD.PDDForms.ProductForms.ActivityForms
|
||||
}, cancellationTokenSource.Token);
|
||||
}
|
||||
|
||||
void DownProd(ShopLoginInfo shop, List<long?> goodsIds)
|
||||
{
|
||||
if (goodsIds.Count > 0)
|
||||
{
|
||||
var rws = dgvActProduct.Rows.Cast<DataGridViewRow>().Where(r => goodsIds.Contains(r.Cells["colSpuId"].Value.ParseToLong())).ToList();
|
||||
var downProdRst = "";
|
||||
for (int i = 0; i < 5 && !downProdRst.Contains("\"success\":true"); i++)
|
||||
{
|
||||
Thread.Sleep(Randomx.GetId(500, 1500));
|
||||
downProdRst = PDDProductUpDownForm.down_goods(shop, string.Join(",", goodsIds));
|
||||
}
|
||||
if (!downProdRst.Contains("\"success\":true"))
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var error = BaseRegex.GetStringJson(ref downProdRst, "errorMsg");
|
||||
if (string.IsNullOrEmpty(error))
|
||||
error = downProdRst;
|
||||
foreach (var rw in rws)
|
||||
rw.Cells["colOpResult"].Value += " 尝试下架失败 " + error;
|
||||
}));
|
||||
}
|
||||
else
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
foreach (var rw in rws)
|
||||
rw.Cells["colOpResult"].Value += " 下架成功";
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void btnRefreshApi_Click(object sender, EventArgs e)
|
||||
{
|
||||
RefreshApi(true);
|
||||
|
||||
Reference in new issue
Block a user