From 7728a1517d7c46d40ae3199d02c40f3f90e7e3fd Mon Sep 17 00:00:00 2001 From: eatmoreapple Date: Fri, 9 Dec 2022 22:08:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=86=97=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- global.go | 2 -- parser.go | 8 -------- 2 files changed, 10 deletions(-) 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)