This commit is contained in:
richboo111
2023-03-07 15:28:04 +08:00
parent 06d2f62084
commit 2f9b099552
2 changed files with 3 additions and 1 deletions

View File

@@ -6090,7 +6090,7 @@ func BatchCreateFreeShipTemplate(relInfo map[string][]tiktok_store.RelInfo, ship
errList := errlist.New()
for k, v := range relInfo {
for _, i := range v {
if bindFreightID, err := tiktok_store.GetStoreFreight(k, utils.Str2Int64(i.VendorStoreID)); err != nil || bindFreightID == 0 || utils.IsNil(bindFreightID) {
if bindFreightID, err := tiktok_store.GetStoreFreight(k, utils.Str2Int64(i.VendorStoreID)); err != nil || bindFreightID == 0 {
if err := tiktok_store.CreateBindFreeShipTemplate(utils.Str2Int(i.StoreID), shipFee); err != nil {
errList.AddErr(err)
}