mtwmapi.IsErrCategoryNotExist考虑使用RetailCatSkuBatchDelete2的情况
This commit is contained in:
@@ -453,7 +453,10 @@ func IsErrCategoryExist(err error) (isExist bool) {
|
||||
}
|
||||
|
||||
func IsErrCategoryNotExist(err error) (isNotExist bool) {
|
||||
return utils.IsErrMatch(err, utils.Int2Str(ErrCodeSkuCategoryNotExist), nil)
|
||||
return utils.IsErrMatch(err, utils.Int2Str(ErrCodeSkuCategoryNotExist), nil) ||
|
||||
utils.IsErrMatch(err, utils.Int2Str(ErrCodeParameterFormatWrong), []string{
|
||||
"门店内不存在该分类",
|
||||
})
|
||||
}
|
||||
|
||||
func IsErrSkuNotExist(err error) (isExist bool) {
|
||||
|
||||
Reference in New Issue
Block a user