diff --git a/src/service/client/http.go b/src/service/client/http.go index bf295e4631aea028ab70762b03aecb1de28e66a5..b9de4d2b773f3f2075d69baa4d30397b894c3df7 100644 --- a/src/service/client/http.go +++ b/src/service/client/http.go @@ -144,7 +144,7 @@ func PostStr(url string, params map[string]string) (string, bool) { var bodyJson model.ZentaoResponse jsonErr := json.Unmarshal(bodyStr, &bodyJson) - if jsonErr != nil { + if jsonErr != nil && strings.Index(url, "login") == -1 { // ignore login request which return a html logUtils.PrintToCmd(jsonErr.Error(), color.FgRed) return "", false }