From f06bed19272fef7977944ac4e47394b628a7aed2 Mon Sep 17 00:00:00 2001 From: wule Date: Thu, 17 Sep 2026 14:36:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E8=B4=A7=E5=B0=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.cs b/TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.cs index 349b98f..52119aa 100644 --- a/TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.cs +++ b/TEMUKJD/WXForms/ProductForms/WXDBProdUploadForm.cs @@ -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");