diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 4be6a123c..e6e9f507b 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -800,8 +800,10 @@ func UpdateStoresSkus(ctx *jxcontext.Context, storeIDs []int, skuBindInfos []*St if num == 0 || !isAsync || hint == "" { hint = utils.Int64ToStr(num) } - if _, ok := err.(*SyncError); ok { - return hint, model.ErrCodeJsonSyncErr, err + if err != nil { + if _, ok := err.(*SyncError); ok { + return hint, model.ErrCodeJsonSyncErr, err + } } return hint, "", err }