From 882c4ff53154f3591f5c06552dbc0f899b89e9c9 Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 9 Sep 2019 13:52:40 +0800 Subject: [PATCH] =?UTF-8?q?-=20ShopCategoryUpdate=E4=B8=AD=E4=B8=8D?= =?UTF-8?q?=E5=BF=BD=E7=95=A5=E5=90=8C=E5=90=8D=E9=94=99=E8=AF=AF.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/ebaiapi/shop_sku.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/platformapi/ebaiapi/shop_sku.go b/platformapi/ebaiapi/shop_sku.go index c5af6b31..5018704f 100644 --- a/platformapi/ebaiapi/shop_sku.go +++ b/platformapi/ebaiapi/shop_sku.go @@ -252,11 +252,13 @@ func (a *API) ShopCategoryUpdate(shopID string, categoryID int64, name string, r "name": name, "rank": rank, }) - if errWithCode, ok := err.(*utils.ErrorWithCode); ok { - if errWithCode.Level() == 0 && errWithCode.IntCode() == 1 { //忽略同名错误 - err = nil - } - } + + // todo, 之前为什么要忽略同名错误? + // if errWithCode, ok := err.(*utils.ErrorWithCode); ok { + // if errWithCode.Level() == 0 && errWithCode.IntCode() == 1 { //忽略同名错误 + // err = nil + // } + // } return err }