This commit is contained in:
richboo111
2022-11-29 09:05:15 +08:00
parent 6177d722a8
commit a1304627c8

View File

@@ -6070,15 +6070,14 @@ func BatchCreateFreeShipTemplate(relInfo map[string][]tiktok_store.RelInfo, ship
errList.AddErr(err) errList.AddErr(err)
} }
} else { } else {
_ = tiktok_store.ShopBindStoreFreight(k, utils.Str2Int64(i.VendorStoreID), bindFreightID)
globals.SugarLogger.Debugf("进入更新包邮模板操作") globals.SugarLogger.Debugf("进入更新包邮模板操作")
if err := tiktok_store.ShopBindStoreFreight(k, utils.Str2Int64(i.VendorStoreID), bindFreightID); err == nil {
if err := tiktok_store.UpdateFreeShipTemplate(utils.Str2Int(i.StoreID), shipFee); err != nil { if err := tiktok_store.UpdateFreeShipTemplate(utils.Str2Int(i.StoreID), shipFee); err != nil {
errList.AddErr(err) errList.AddErr(err)
} }
} }
} }
} }
}
if errList.GetErrListAsOne() != nil { if errList.GetErrListAsOne() != nil {
return fmt.Sprintf("%v", errList.GetErrListAsOne()), nil return fmt.Sprintf("%v", errList.GetErrListAsOne()), nil
} }