删除冗余的代码
This commit is contained in:
parent
c9e4e842d9
commit
7728a1517d
@ -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")
|
||||
)
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user