提交 2231ca1f 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

format msg

上级 c0fdaffa
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册