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");