京东商城刷新待售商品

This commit is contained in:
苏尹岚
2020-05-22 15:38:38 +08:00
parent 93ae05ec42
commit d29d80b808
4 changed files with 26 additions and 5 deletions

View File

@@ -32,6 +32,9 @@ func (a *API) AccessStorePage(fullURL string, bizParams map[string]interface{},
if jsonResult1 == nil {
return platformapi.ErrLevelRecoverableErr, fmt.Errorf("mapData is nil")
}
if strings.Contains(bodyStr, "登录") {
return platformapi.ErrLevelRecoverableErr, fmt.Errorf("cookie可能过期了")
}
if err == nil {
if jsonResult1["error_response"] != nil {
errLevel = platformapi.ErrLevelGeneralFail