fix(file): 修复积分商城图片公开访问
This commit is contained in:
@@ -95,6 +95,9 @@ func TestPointsMallSceneUsesPublicFileURL(t *testing.T) {
|
||||
if !strings.HasPrefix(got, "/api/public/files/object?") {
|
||||
t.Fatalf("points-mall file url = %q, want public file endpoint", got)
|
||||
}
|
||||
if !isPublicObjectKey("points-mall/2026/11/04/example.webp") {
|
||||
t.Fatal("points-mall object should be publicly readable")
|
||||
}
|
||||
}
|
||||
|
||||
func TestNormalizeSceneListingScreenshotAndOperatingExpense(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user