同步错误

This commit is contained in:
苏尹岚
2020-01-07 18:26:01 +08:00
parent c6c2febfd1
commit 28c75def4e

View File

@@ -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
}