上货小优化

This commit is contained in:
wule committed 2026-09-17 14:36:58 +08:00
1 parent 02e4d9d5c7
commit f06bed1927
1 file changed
+12
@@ -2784,6 +2784,8 @@ namespace TemuKJD.WXForms.ProductForms
if (!dbProd.wx_cat_leaf.IsNullOrZero())
aiCateIdLst.Add(dbProd.wx_cat_leaf.ParseToLong());
aiCateIdLst = aiCateIdLst.Distinct().ToList();
if (aiCateIdLst.Count == 0 || aiCateIdLst.Count == 1)
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"获取类目失败 未识别到完整类目\"}";
}
catch (Exception ex)
{
@@ -2903,6 +2905,16 @@ namespace TemuKJD.WXForms.ProductForms
string getCateRst = WXUpload.getCategoryOnShelf(shop, aiCateIdLst);
if (!getCateRst.Contains("\"code\":0"))
{
Thread.Sleep(500);
WXUpload.getCategoryOnShelf(shop, aiCateIdLst);
}
if (!getCateRst.Contains("\"code\":0"))
{
Thread.Sleep(500);
WXUpload.getCategoryOnShelf(shop, aiCateIdLst);
}
if (!getCateRst.Contains("\"code\":0"))
{
WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
var error = BaseRegex.GetStringJson(ref getCateRst, "msg");