fence map

This commit is contained in:
richboo111
2022-12-12 17:34:03 +08:00
parent 7bacee559c
commit 00a7b34a82

View File

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