fix: issues

This commit is contained in:
Rogee
2024-09-06 08:49:35 +08:00
parent 38e6cf3d00
commit 65dc698f5b

View File

@@ -59,7 +59,7 @@ func NewDBChannel(uuid int64, username, title string) *DBChannel {
}
func (c *DBChannel) Asset(assetID int64, ext string) string {
assetFile := fmt.Sprintf("%d/%d.%s", c.UUID, assetID, strings.Trim(ext, "."))
assetFile := fmt.Sprintf("%d/%d.%s", c.UUID, assetID, strings.ToLower(strings.Trim(ext, ".")))
assetFile = filepath.Join(config.C.Output, assetFile)
// if file dir not exists then create it