银豹分类重复修改

This commit is contained in:
苏尹岚
2020-03-30 11:39:04 +08:00
parent c98396aee4
commit b1946e1780

View File

@@ -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