diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index ef02baee6..fbcef8972 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -1596,6 +1596,8 @@ func AddStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, vendorID int, vend _, err = CurVendorSync.SyncStore(ctx, db, storeMap.VendorID, storeID, false, userName) _, err = CurVendorSync.FullSyncStoresSkus(ctx, db, []int{vendorID}, []int{storeID}, true, nil, true, true) if utils.IsNil(errList) && err == nil { + globals.SugarLogger.Debug("utils.IsNil(errList)==============", utils.IsNil(errList)) + globals.SugarLogger.Debug("fakeErr===========%v,%v", errList, err) return outStoreMap, nil } else { return outStoreMap, errors.New(fmt.Sprintf("errList=%s,err=%v", utils.Format4Output(errList, true), err)) diff --git a/business/partner/purchase/tiktok_store/store.go b/business/partner/purchase/tiktok_store/store.go index 92da8aca8..afc338075 100644 --- a/business/partner/purchase/tiktok_store/store.go +++ b/business/partner/purchase/tiktok_store/store.go @@ -362,19 +362,18 @@ func (P *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin err3 := api.EditStore(params) if err3 != nil { errList.AddErr(err3) - } else { - //更新运费模板 - - err = UpdateFreightTemplate(storeID) - if err != nil { - return errors.New(fmt.Sprintf("更新运费模板失败,原因:%v", err)) - } - //更新电子围栏 - err = UpdateFenceByStore(storeInfo.VendorOrgCode, storeID) - if err != nil { - return errors.New(fmt.Sprintf("更新电子围栏失败,原因:%v", err)) - } } + //更新运费模板 + err = UpdateFreightTemplate(storeID) + if err != nil { + return errors.New(fmt.Sprintf("更新运费模板失败,原因:%v", err)) + } + //更新电子围栏 + err = UpdateFenceByStore(storeInfo.VendorOrgCode, storeID) + if err != nil { + return errors.New(fmt.Sprintf("更新电子围栏失败,原因:%v", err)) + } + } return err }