diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 99361bfc9..b69301d1f 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -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)