From de2fd94a8d9e5382418ea3a2883fac5e4fc8e543 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 13 Jul 2023 10:19:22 +0800 Subject: [PATCH] 1 --- business/jxcallback/auto_delivery/auto_delivery.go | 3 +++ business/partner/purchase/tao_vegetable/store_sku2.go | 2 ++ 2 files changed, 5 insertions(+) diff --git a/business/jxcallback/auto_delivery/auto_delivery.go b/business/jxcallback/auto_delivery/auto_delivery.go index aaff62cb6..7aa7bce6e 100644 --- a/business/jxcallback/auto_delivery/auto_delivery.go +++ b/business/jxcallback/auto_delivery/auto_delivery.go @@ -95,6 +95,9 @@ func AutoSettingFakeDelivery() { storeList := strings.Split(configList[0].Value, ",") for _, v := range storeList { storeIdAndVendorId := strings.Split(v, "-") + if len(storeIdAndVendorId) == model.NO { + continue + } orderList, err := dao.GetOrderListByStoreList(db, []int64{utils.Str2Int64(storeIdAndVendorId[0])}, utils.Str2Int(storeIdAndVendorId[1])) if err != nil { globals.SugarLogger.Errorf("获取门店刷单记录错误") diff --git a/business/partner/purchase/tao_vegetable/store_sku2.go b/business/partner/purchase/tao_vegetable/store_sku2.go index 20c46228b..9db3ba638 100644 --- a/business/partner/purchase/tao_vegetable/store_sku2.go +++ b/business/partner/purchase/tao_vegetable/store_sku2.go @@ -393,6 +393,8 @@ func createTaoVegetable(ctx *jxcontext.Context, api *tao_vegetable.API, storeSku } failedListStock := updateStoreSkusStockByCreate(ctx, api, storeID, vendorStoreID, successSku) failedList = append(failedList, failedListStock...) + globals.SugarLogger.Debugf("failedList := %s", utils.Format4Output(failedList, false)) + globals.SugarLogger.Debugf("storeSkuList := %s", utils.Format4Output(storeSkuList, false)) return failedList, nil }