拼多多版权限管理 指定类目上传 ai图片上传权限管理
This commit is contained in:
1 parent
58798805ed
commit
ce23b0a49a
28 files changed
+1265
-483
No files matched your search
@@ -239,43 +239,50 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
upload_draft_product_lst = NaiBa.Util.Helper.ConfigHelper.LoadConfig<NaiBa.Util.ConcurrentList<TemuDBProductSelect>>("wx_select_upload_draft_products");
|
||||
if (upload_draft_product_lst == null)
|
||||
upload_draft_product_lst = new ConcurrentList<TemuDBProductSelect>();
|
||||
foreach (var selectProd in upload_draft_product_lst)
|
||||
Task.Run(() =>
|
||||
{
|
||||
int rowIndex = 0;
|
||||
this.dgvSelectProduct.Rows.Insert(rowIndex,
|
||||
true,
|
||||
selectProd.id,
|
||||
selectProd.shop_id,
|
||||
selectProd.shop_account,
|
||||
"登录",
|
||||
"进店",
|
||||
BaseClass.SaLevel > 0 ? selectProd.spu_id : selectProd.spu_id.ParseToString().GetHashCode().ParseToString().Trim('-'),
|
||||
selectProd.skc_id,
|
||||
selectProd.main_img,
|
||||
DataGridViewExtension.defaultBitmap,
|
||||
"",
|
||||
null,
|
||||
selectProd.product_name, // 用户端显示商品原名
|
||||
selectProd.cat_name,
|
||||
BaseClass.SaLevel > 0 ? selectProd.ext_code : selectProd.ext_code.ParseToString().GetHashCode().ParseToString().Trim('-'),
|
||||
selectProd.status,
|
||||
selectProd.draft_id,
|
||||
selectProd.notes,
|
||||
(selectProd.user_notes + " 编辑").Trim(),
|
||||
"删除",
|
||||
selectProd.add_time.ToString("yy-MM-dd HH:mm:ss"),
|
||||
"");
|
||||
|
||||
dgvSelectProduct.Rows[rowIndex].Height = 60;
|
||||
|
||||
int maxRowCount = 10000;
|
||||
while (dgvSelectProduct.Rows.Count > maxRowCount)
|
||||
foreach (var selectProd in upload_draft_product_lst.Reverse().ToList())
|
||||
{
|
||||
dgvSelectProduct.Rows.RemoveAt(maxRowCount);
|
||||
}
|
||||
}
|
||||
int maxRowCount = 10000;
|
||||
if (dgvSelectProduct.Rows.Count >= maxRowCount)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (dgvSelectProduct.Rows.Count % 100 == 0)
|
||||
Thread.Sleep(1);
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
int rowIndex = this.dgvSelectProduct.Rows.Add(
|
||||
true,
|
||||
selectProd.id,
|
||||
selectProd.shop_id,
|
||||
selectProd.shop_account,
|
||||
"登录",
|
||||
"进店",
|
||||
BaseClass.SaLevel > 0 ? selectProd.spu_id : selectProd.spu_id.ParseToString().GetHashCode().ParseToString().Trim('-'),
|
||||
selectProd.skc_id,
|
||||
selectProd.main_img,
|
||||
DataGridViewExtension.defaultBitmap,
|
||||
"",
|
||||
null,
|
||||
selectProd.product_name, // 用户端显示商品原名
|
||||
selectProd.cat_name,
|
||||
BaseClass.SaLevel > 0 ? selectProd.ext_code : selectProd.ext_code.ParseToString().GetHashCode().ParseToString().Trim('-'),
|
||||
selectProd.status,
|
||||
selectProd.draft_id,
|
||||
selectProd.notes,
|
||||
(selectProd.user_notes + " 编辑").Trim(),
|
||||
"删除",
|
||||
selectProd.add_time.ToString("yy-MM-dd HH:mm:ss"),
|
||||
""
|
||||
);
|
||||
|
||||
//#if DEBUG
|
||||
dgvSelectProduct.Rows[rowIndex].Height = 60;
|
||||
}));
|
||||
}
|
||||
});
|
||||
|
||||
//#if DEBUG
|
||||
if (BaseClass.SaLevel == 1)
|
||||
{
|
||||
//lblExtCodeFilter.Visible = true;
|
||||
|
||||
Reference in new issue
Block a user