优化类目模板获取错误状态显示
This commit is contained in:
1 parent
b9c756b561
commit
c0fa847158
1 file changed
+2
-1
@@ -2904,9 +2904,10 @@ namespace TemuKJD.WXForms.ProductForms
|
|||||||
string getCateRst = WXUpload.getCategoryOnShelf(shop, aiCateIdLst);
|
string getCateRst = WXUpload.getCategoryOnShelf(shop, aiCateIdLst);
|
||||||
if (!getCateRst.Contains("\"code\":0"))
|
if (!getCateRst.Contains("\"code\":0"))
|
||||||
{
|
{
|
||||||
|
WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
|
||||||
var error = BaseRegex.GetStringJson(ref getCateRst, "msg");
|
var error = BaseRegex.GetStringJson(ref getCateRst, "msg");
|
||||||
if (string.IsNullOrEmpty(error))
|
if (string.IsNullOrEmpty(error))
|
||||||
error = getCateRst;
|
error = getCateRst.Replace("{", "【").Replace("}", "】");
|
||||||
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"获取类目模板失败" + error + "\"}";
|
return "{\"success\":false,\"draftId\":0,\"status\":\"未上传\",\"errMsg\":\"获取类目模板失败" + error + "\"}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user