fence map

This commit is contained in:
richboo111
2022-12-12 16:33:41 +08:00
parent 8c5a8eb27e
commit 258182f885

View File

@@ -6033,8 +6033,8 @@ 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.StoreID)); err == nil && len(bindFence) > 0 {
globals.SugarLogger.Debugf("%s", i.VendorStoreID)
if bindFence, err := tiktok_store.GetWarehouseByStore(k, utils.Str2Int64(i.VendorStoreID)); err == nil && len(bindFence) > 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)
if err1 := tiktok_store.UpdateFenceByStore(k, tempFenceID, utils.Str2Int(i.VendorStoreID)); err1 != nil {