diff --git a/internal/routers/api/attachment.go b/internal/routers/api/attachment.go index 16203525..59bbc52f 100644 --- a/internal/routers/api/attachment.go +++ b/internal/routers/api/attachment.go @@ -263,7 +263,7 @@ func DownloadAttachment(c *gin.Context) { return } - bucket, err := client.Bucket("paopao-assets") + bucket, err := client.Bucket(global.AliossSetting.AliossBucket) if err != nil { global.Logger.Errorf("client.Bucket err: %v", err) response.ToErrorResponse(errcode.DownloadReqError)