feat(distribution): 分站品牌装修可配置首页入口并上传图片
分站可单独配置回收、合作反馈和客服二维码,未配置时继承主站;Logo、图标和轮播支持直接上传。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -77,6 +77,16 @@ func TestCooperationFeedbackSceneUsesPublicFileURL(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestSupportQrcodeSceneUsesPublicFileURL(t *testing.T) {
|
||||
if got := normalizeScene("support-qrcode"); got != "support-qrcode" {
|
||||
t.Fatalf("normalize support-qrcode scene = %q", got)
|
||||
}
|
||||
got := fileURLForScene("support-qrcode", "support-qrcode/2026/09/25/example.png")
|
||||
if !strings.HasPrefix(got, "/api/public/files/object?") {
|
||||
t.Fatalf("support-qrcode file url = %q, want public file endpoint", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestNormalizeSceneListingScreenshotAndOperatingExpense(t *testing.T) {
|
||||
if got := normalizeScene("listing_screenshot"); got != "listing" {
|
||||
t.Fatalf("normalize listing_screenshot scene = %q, want listing", got)
|
||||
|
||||
Reference in New Issue
Block a user