fix(file): 修复积分商城图片公开访问

This commit is contained in:
yml2213
2026-11-04 19:31:31 +08:00
parent 46c682cb78
commit 0d12950961
2 changed files with 28 additions and 10 deletions
@@ -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) {