diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 57b55969a..c8a3f3852 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -817,7 +817,9 @@ func AddStoreCourierMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendorID } } outStoreCourierMap = storeCourierMap - _, err = CurVendorSync.SyncStore(ctx, db, storeCourierMap.VendorID, storeID, false, userName) + if err == nil { + _, err = CurVendorSync.SyncStore(ctx, db, storeCourierMap.VendorID, storeID, false, userName) + } } else { dao.Rollback(db) } @@ -906,6 +908,9 @@ func updateOrCreateDadaStore(storeDetail *dao.StoreDetail2) (err error) { } err = api.DadaAPI.ShopUpdate(storeDetail.DadaStoreID, params) } + if err != nil { + globals.SugarLogger.Debugf("updateOrCreateDadaStore storeID:%d failed with error:%v", storeDetail.ID, err) + } return err }