diff --git a/global.go b/global.go index 2d34590..1daf034 100644 --- a/global.go +++ b/global.go @@ -109,8 +109,6 @@ const ( // errors var ( ErrNoSuchUserFoundError = errors.New("no such user found") - ErrMissLocationHeader = errors.New("301 response missing Location header") - ErrLoginForbiddenError = errors.New("login forbidden") ErrLoginTimeout = errors.New("login timeout") ) diff --git a/parser.go b/parser.go index 4c01a6b..80ed563 100644 --- a/parser.go +++ b/parser.go @@ -47,14 +47,6 @@ func getWebWxDataTicket(cookies []*http.Cookie) string { return "" } -func getTotalDuration(delay ...time.Duration) time.Duration { - var total time.Duration - for _, d := range delay { - total += d - } - return total -} - // GetFileContentType 获取文件上传的类型 func GetFileContentType(file multipart.File) (string, error) { data := make([]byte, 512)