🚧 check upload file

This commit is contained in:
微凉
2021-12-31 14:05:35 +08:00
parent 6f0959a98e
commit 939c9cd5ac
12 changed files with 60 additions and 13 deletions

View File

@ -6,7 +6,6 @@ import (
"github.com/go-resty/resty/v2"
log "github.com/sirupsen/logrus"
"net/http"
"strings"
)
type DriverConfig struct {
@ -78,14 +77,8 @@ func GetDriver(name string) (driver Driver, ok bool) {
return
}
func GetNoCors() string {
res := make([]string, 0)
for k, v := range driversMap {
if v.Config().NoCors {
res = append(res, k)
}
}
return strings.Join(res, ",")
func GetDriversMap() map[string]Driver {
return driversMap
}
func GetDrivers() map[string][]Item {