diff --git a/short_url.go b/short_url.go index 8c2eaae..6127d7f 100644 --- a/short_url.go +++ b/short_url.go @@ -99,7 +99,7 @@ func CheckHttpRes(resp *Response, data interface{}) (err error) { return } - if resBody.Code != 0 { + if resBody.Code != 200 { return fmt.Errorf("请求失败,err: %s", resBody.Message) } if data != nil {