🎇 finish MediaTrack upload

This commit is contained in:
微凉
2022-01-06 19:21:13 +08:00
parent c03a4f83d1
commit f0d9a452bb
3 changed files with 5 additions and 2 deletions

View File

@ -76,7 +76,7 @@ type File struct {
CreatedAt time.Time `json:"created_at"`
DeletedAt string `json:"deleted_at"`
Description string `json:"description"`
File struct {
File *struct {
Cover string `json:"cover"`
Src string `json:"src"`
} `json:"file"`
@ -97,7 +97,7 @@ func (driver MediaTrack) formatFile(file *File) *model.File {
Driver: driver.Config().Name,
UpdatedAt: &file.UpdatedAt,
}
if file.Category == 0 {
if file.File == nil {
// folder
f.Type = conf.FOLDER
} else {