From b1946e1780ab718d8578e24024616aa25fe7239d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 30 Mar 2020 11:39:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=B6=E8=B1=B9=E5=88=86=E7=B1=BB=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/yinbaoapi/store_page.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platformapi/yinbaoapi/store_page.go b/platformapi/yinbaoapi/store_page.go index d539e039..aa3d5def 100644 --- a/platformapi/yinbaoapi/store_page.go +++ b/platformapi/yinbaoapi/store_page.go @@ -141,7 +141,7 @@ func (a *API) AddNewCategory(userId, categoryName, parentCategoryName string) (c } func IsErrCategoryExist(err error) (isExist bool) { - return utils.IsErrMatch(err, "1", []string{"您输入的商品分类名称已存在"}) + return utils.IsErrMatch(err, "", []string{"您输入的商品分类名称已存在"}) } //修改分类 @@ -392,7 +392,6 @@ func (a *API) TryGetCookie() (cookie string, err error) { a.config, func(response *http.Response, bodyStr string, jsonResult1 map[string]interface{}) (errLevel string, err error) { cookies := response.Cookies() - fmt.Println(utils.Format4Output(cookies, false)) for _, v := range cookies { if v.Name == ".POSPALAUTH30220" && v.Value != "" { cookie = v.Value