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