fix: issues

This commit is contained in:
Rogee
2024-09-03 00:33:27 +08:00
parent 3f1197e5d4
commit ba16785b43
4 changed files with 152 additions and 123 deletions

View File

@@ -40,7 +40,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 = filepath.Join(config.C.Outputs, assetFile)
assetFile = filepath.Join(config.C.Output, assetFile)
// if file dir not exists then create it
if _, err := os.Stat(filepath.Dir(assetFile)); os.IsNotExist(err) {