From 1ca4d9aef25a2de343281a2261ce920f63067a58 Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 18 Apr 2019 19:20:09 +0800 Subject: [PATCH] - fk --- business/jxstore/cms/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index f91edbfdd..e3a768f48 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -811,7 +811,7 @@ func AddStoreCourierMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendorID dao.Commit(db) if vendorID == model.VendorIDDada { storeList, err := dao.GetMissingDadaStores(db, storeID, false) - if err != nil && len(storeList) > 0 { + if err == nil && len(storeList) > 0 { storeList[0].DadaStoreID = storeCourierMap.VendorStoreID err = updateOrCreateDadaStore(storeList[0]) } else {