feat: modify oss

This commit is contained in:
yanghao05
2025-04-24 10:31:55 +08:00
parent dd2de32317
commit 926b7f8d3b
5 changed files with 3 additions and 7 deletions

View File

@@ -101,7 +101,7 @@ func (w *VideoStoreShortWorker) Work(ctx context.Context, job *Job[VideoStoreSho
}
// upload to oss
if err := w.oss.Upload(ctx, job.Args.FilePath, filePath); err != nil {
if err := w.oss.Upload(ctx, job.Args.FilePath, filePath, ali.WithInternal(true)); err != nil {
log.Errorf("Error uploading file to OSS: %v", err)
return JobCancel(err)
}