fix: issues

This commit is contained in:
Rogee
2024-12-15 00:07:15 +08:00
parent 721b14372b
commit ed3d8b0e6c
3 changed files with 17 additions and 8 deletions

View File

@@ -120,7 +120,7 @@ func (c *Controller) MediaSegment(ctx fiber.Ctx) error {
return err
}
filepath := c.svc.GetSegmentPath(ctx.Context(), mediaType, model.Hash, segments[0])
filepath := c.svc.GetSegmentPath(ctx.Context(), mediaType, model.TenantID, model.Hash, segments[0])
return ctx.SendFile(filepath)
}