diff --git a/platformapi/ebaiapi/shop_sku.go b/platformapi/ebaiapi/shop_sku.go index 2416f9a9..a2207461 100644 --- a/platformapi/ebaiapi/shop_sku.go +++ b/platformapi/ebaiapi/shop_sku.go @@ -505,7 +505,7 @@ func IsErrCategoryExist(err error) (isExist bool) { return utils.IsErrMatch(err, "1", []string{"商户已存在该自定义分类"}) } -func IsErrCategoryNotExist(err error) (isExist bool) { +func IsErrCategoryNotExist(err error) (isNotExist bool) { return utils.IsErrMatch(err, "", []string{"不存在该自定义分类ID", "商户不存在该自定义分类"}) } diff --git a/platformapi/mtwmapi/retail.go b/platformapi/mtwmapi/retail.go index 23156e43..cd444246 100644 --- a/platformapi/mtwmapi/retail.go +++ b/platformapi/mtwmapi/retail.go @@ -363,7 +363,7 @@ func IsErrCategoryExist(err error) (isExist bool) { return utils.IsErrMatch(err, utils.Int2Str(ErrCodeSkuCategoryExist), nil) } -func IsErrCategoryNotExist(err error) (isExist bool) { +func IsErrCategoryNotExist(err error) (isNotExist bool) { return utils.IsErrMatch(err, utils.Int2Str(ErrCodeSkuCategoryNotExist), nil) }