From 38ed14123ed423936a205a986d4b1c729a43d562 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 09:28:16 +0800 Subject: [PATCH] 1 --- platformapi/tao_vegetable/store_sku.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/platformapi/tao_vegetable/store_sku.go b/platformapi/tao_vegetable/store_sku.go index 338620af..320ca77a 100644 --- a/platformapi/tao_vegetable/store_sku.go +++ b/platformapi/tao_vegetable/store_sku.go @@ -35,11 +35,15 @@ func (a *API) AddStoreSku(param *request.AlibabaWdkSkuAddRequest) (*[]VegetableR ErrMsg: "", }) } else { - foodList = append(foodList, VegetableResultList{ + skuData := VegetableResultList{ ProductID: "", SkuID: *v.Model, ErrMsg: *v.ErrMsg, - }) + } + if *v.ErrCode == "F_SKU_S1_BIZ_011" { + skuData.ProductID = *v.Model + } + foodList = append(foodList) } }