From f286f820bdd814323bf61eb483fdf343a209cead Mon Sep 17 00:00:00 2001 From: thorwebdev Date: Fri, 3 Mar 2023 18:35:57 +0800 Subject: [PATCH] chore: random AI background. --- apps/www/supabase/functions/lw7-ticket-og/handler.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/www/supabase/functions/lw7-ticket-og/handler.tsx b/apps/www/supabase/functions/lw7-ticket-og/handler.tsx index be3c8054b72..0914abb5c92 100644 --- a/apps/www/supabase/functions/lw7-ticket-og/handler.tsx +++ b/apps/www/supabase/functions/lw7-ticket-og/handler.tsx @@ -7,12 +7,12 @@ const STORAGE_URL = 'https://obuldanrptloktxcffvn.supabase.co/storage/v1/object/ const BACKGROUND = { REG: { BG: `${STORAGE_URL}/reg_bg.png?v=3`, - AI: `${STORAGE_URL}/reg_ai.png?v=3`, + AI: `${STORAGE_URL}/tickets_bg/reg_bg_${Math.floor(Math.random() * 281)}.png?v=3`, TICKET: `${STORAGE_URL}/reg_ticket.png?v=3`, }, GOLD: { BG: `${STORAGE_URL}/gold_bg.png?v=3`, - AI: `${STORAGE_URL}/gold_ai.png?v=3`, + AI: `${STORAGE_URL}/tickets_bg/gold_bg_${Math.floor(Math.random() * 56)}.png?v=3`, TICKET: `${STORAGE_URL}/gold_ticket.png?v=3`, }, }