fence map

This commit is contained in:
richboo111
2022-12-12 16:05:29 +08:00
parent 9e38c909f9
commit 8c5a8eb27e

View File

@@ -6034,6 +6034,7 @@ func AssistCreateFence(relInfo map[string][]tiktok_store.RelInfo) (string, error
globals.SugarLogger.Debugf("京西平台没有配送范围的门店ID=%s", endStr)
}
if bindFence, err := tiktok_store.GetWarehouseByStore(k, utils.Str2Int64(i.StoreID)); err == nil && len(bindFence) > 0 {
globals.SugarLogger.Debugf("%s", i.VendorStoreID)
tempFenceID = bindFence[i.VendorStoreID][0].OutFenceIds[0]
globals.SugarLogger.Debugf("tempFenceID================%s", tempFenceID)
if err1 := tiktok_store.UpdateFenceByStore(k, tempFenceID, utils.Str2Int(i.VendorStoreID)); err1 != nil {