From e4fffa9cd17a67bc045f4337938841bc69d28221 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Mon, 31 Oct 2022 18:45:13 +0800 Subject: [PATCH] 1 --- business/partner/purchase/tiktok_store/store.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/business/partner/purchase/tiktok_store/store.go b/business/partner/purchase/tiktok_store/store.go index 011a1406b..26fd78ff6 100644 --- a/business/partner/purchase/tiktok_store/store.go +++ b/business/partner/purchase/tiktok_store/store.go @@ -250,7 +250,11 @@ func CreateOrUpdateAll(vendorOrgCode string, storeID, vendorStoreID int64) error if err = dao.CreateEntity(db, FreightTemplate); err != nil { errList.AddErr(fmt.Errorf("db update storeID,vendorStoreID defeat on :%v", err)) } - return errors.New(fmt.Sprintf("%s", utils.Format4Output(errList, true))) + if utils.IsNil(errList) { + return errors.New(fmt.Sprintf("%s", utils.Format4Output(errList, true))) + } else { + return nil + } } // shop/editStore 编辑门店信息 正向推送平台