From 581bbdcf7cedee3fc4e1ade3da8226592d1b7586 Mon Sep 17 00:00:00 2001 From: wanggongwei Date: Mon, 2 Feb 2026 17:15:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A6=96=E6=AC=A1=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E6=97=B6=E5=8F=91=E7=94=9F=E7=9A=84=E5=B4=A9=E6=BA=83?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/firstTranslationModal.tsx | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/app/components/firstTranslationModal.tsx b/app/components/firstTranslationModal.tsx index 7f7e4ed7..e7d25978 100644 --- a/app/components/firstTranslationModal.tsx +++ b/app/components/firstTranslationModal.tsx @@ -21,29 +21,13 @@ const FirstTranslationModal: React.FC = ({ const fetcher = useFetcher(); const planFetcher = useFetcher(); - const orderFetcher = useFetcher(); useEffect(() => { if (planFetcher.data) { if (planFetcher.data?.success) { - const order = planFetcher.data?.response?.appSubscription; - const confirmationUrl = planFetcher.data?.response?.confirmationUrl; - const orderInfo = { - id: order.id, - amount: order.price.amount, - name: order.name, - createdAt: order.createdAt, - status: order.status, - confirmationUrl: confirmationUrl, - }; - const formData = new FormData(); - formData.append("orderInfo", JSON.stringify(orderInfo)); - orderFetcher.submit(formData, { - method: "post", - action: "/app", - }); + const confirmationUrl = + planFetcher.data?.response?.confirmationUrl; open(confirmationUrl, "_top"); - } else { } } }, [planFetcher.data]);