优化类目模板获取错误状态显示

This commit is contained in:
wule committed 2026-09-16 18:51:20 +08:00
1 parent b9c756b561
commit c0fa847158
1 file changed
+2 -1
@@ -2904,9 +2904,10 @@ namespace TemuKJD.WXForms.ProductForms
string getCateRst = WXUpload.getCategoryOnShelf(shop, aiCateIdLst);
if (!getCateRst.Contains("\"code\":0"))
{
WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
var error = BaseRegex.GetStringJson(ref getCateRst, "msg");
if (string.IsNullOrEmpty(error))
error = getCateRst;
error = getCateRst.Replace("{", "【").Replace("}", "】");
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"获取类目模板失败" + error + "\"}";
}