From 49ca57a882ae1284a4b1d0f7557868d47abc8220 Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 18 Apr 2019 19:08:40 +0800 Subject: [PATCH] - fk --- business/jxstore/cms/store.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 }