guide

This commit is contained in:
微凉
2021-10-29 14:50:26 +08:00
parent f4969560d4
commit 57ad66b43a
7 changed files with 73 additions and 30 deletions

View File

@ -24,7 +24,7 @@ func Down(ctx *fiber.Ctx) error {
if err != nil {
return ErrorResp(ctx, err, 500)
}
if account.Type == "native" {
if account.Type == "Native" {
return ctx.SendFile(link)
} else {
return ctx.Redirect(link, 302)
@ -49,7 +49,7 @@ func Proxy(ctx *fiber.Ctx) error {
if err != nil {
return ErrorResp(ctx, err, 500)
}
if account.Type == "native" {
if account.Type == "Native" {
return ctx.SendFile(link)
} else {
driver.Proxy(ctx)