From b6823bec2f31b7d75630db9fd1276734e8458118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 3 Jul 2023 10:35:27 +0800 Subject: [PATCH] 1 --- business/partner/purchase/tao_vegetable/store_sku2.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/business/partner/purchase/tao_vegetable/store_sku2.go b/business/partner/purchase/tao_vegetable/store_sku2.go index 5408345f7..e5f652c7a 100644 --- a/business/partner/purchase/tao_vegetable/store_sku2.go +++ b/business/partner/purchase/tao_vegetable/store_sku2.go @@ -240,9 +240,9 @@ func UpdateTaoVegetable(api *tao_vegetable.API, storeSkuList []*dao.StoreSkuSync SkuCode: utils.String2Pointer(utils.Int2Str(v.SkuID)), SkuName: utils.String2Pointer(v.SkuName), MemberPrice: utils.String2Pointer(utils.Float64ToStr(float64(v.UnitPrice) / float64(100))), - SkuPrice: utils.String2Pointer(utils.Float64ToStr(float64(v.UnitPrice) / float64(100))), + SkuPrice: utils.String2Pointer(utils.Float64ToStr(float64(v.UnitPrice) / float64(100))), // 优先使用skuPrice 靠后SalePrice CategoryCode: utils.String2Pointer(utils.Int2Str(v.CategoryID)), - MerchantCatCode: utils.String2Pointer(v.SkuVendorCatID), + MerchantCatCode: utils.String2Pointer(v.VendorCatID), // 优先使用 靠后 category_code } if v.MinOrderCount <= model.YES { updateSku.PurchaseQuantity = utils.Int64ToPointer(model.YES) // 起购单位 @@ -696,7 +696,6 @@ func (p *PurchaseHandler) GetSensitiveWordRegexp() *regexp.Regexp { // SelectStoreSkuListByFoodList 淘宝批量返回 func SelectStoreSkuListByFoodList(storeSkuList interface{}, foodList []tao_vegetable.VegetableResultList, storeID int, vendorName, syncType string) (selectedStoreSkuList []*partner.StoreSkuInfoWithErr, successMap map[string]string) { - globals.SugarLogger.Debugf("=======foodList := %s", utils.Format4Output(foodList, false)) foodMap := make(map[string]string, len(foodList)) successMap = make(map[string]string) if len(foodList) > 0 { @@ -743,9 +742,6 @@ func SelectStoreSkuListByFoodList(storeSkuList interface{}, foodList []tao_veget } } } - globals.SugarLogger.Debugf("=======selectedStoreSkuList := %s", utils.Format4Output(selectedStoreSkuList, false)) - globals.SugarLogger.Debugf("=======successMap := %s", utils.Format4Output(successMap, false)) - return selectedStoreSkuList, successMap }