银豹分类重复修改
This commit is contained in:
@@ -141,7 +141,7 @@ func (a *API) AddNewCategory(userId, categoryName, parentCategoryName string) (c
|
|||||||
}
|
}
|
||||||
|
|
||||||
func IsErrCategoryExist(err error) (isExist bool) {
|
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,
|
a.config,
|
||||||
func(response *http.Response, bodyStr string, jsonResult1 map[string]interface{}) (errLevel string, err error) {
|
func(response *http.Response, bodyStr string, jsonResult1 map[string]interface{}) (errLevel string, err error) {
|
||||||
cookies := response.Cookies()
|
cookies := response.Cookies()
|
||||||
fmt.Println(utils.Format4Output(cookies, false))
|
|
||||||
for _, v := range cookies {
|
for _, v := range cookies {
|
||||||
if v.Name == ".POSPALAUTH30220" && v.Value != "" {
|
if v.Name == ".POSPALAUTH30220" && v.Value != "" {
|
||||||
cookie = v.Value
|
cookie = v.Value
|
||||||
|
|||||||
Reference in New Issue
Block a user