fix(crypt): add sign to thumbnail (#6611)

This commit is contained in:
j2rong4cn
2024-12-25 21:13:54 +08:00
committed by GitHub
parent 221cdf3611
commit db5c601cfe
3 changed files with 19 additions and 5 deletions

View File

@ -1,6 +1,8 @@
package common
import (
"context"
"net/http"
"strings"
"github.com/alist-org/alist/v3/cmd/flags"
@ -80,3 +82,10 @@ func SuccessResp(c *gin.Context, data ...interface{}) {
Data: data[0],
})
}
func GetHttpReq(ctx context.Context) *http.Request {
if c, ok := ctx.(*gin.Context); ok {
return c.Request
}
return nil
}