自动上报违规商品
上货自动检测违规商品
自动下架违规商品
This commit is contained in:
chfei committed 2026-10-30 14:14:14 +08:00
1 parent a319af0e91
commit d5e38dd518
9 files changed
+308 -19

No files matched your search

@@ -34,6 +34,10 @@ namespace TemuKJD.PDDForms.ProductForms
if (shop.LoginStatus != "登录成功")
continue;
// 开启自动下架时,后台检测当前店铺在售商品并下架违规商品。
if (GlobalConfig.GlobalSettings.AutoDelistViolationProducts)
CloudGoodsService.CheckAndOffShelfViolations(shop);
Thread.Sleep(Randomx.GetId(500, 1500));
WXProdViolationGetInfo info = new WXProdViolationGetInfo() { shopId = shop.ShopId, updateDay = DateTime.Now.ToString("yyMMdd") };
@@ -52,7 +56,9 @@ namespace TemuKJD.PDDForms.ProductForms
info.failReason = "";
var result = getShopiolationProd(shop);
CloudGoodsService.ReportViolationsFromJson(result);
// 开启自动上报时,后台解析店铺处罚记录并上报违规商品。
if (GlobalConfig.GlobalSettings.AutoReportViolationProducts)
CloudGoodsService.ReportViolationsFromJson(result, shop);
Thread.Sleep(Randomx.GetId(1000, 2000));
if (!result.Contains("\"code\":0"))