year 3 nedēļas atpakaļ
vecāks
revīzija
f0b4002516

+ 2 - 1
src/app/[locale]/(TabBar)/deposit/component/deposit/index.tsx

@@ -233,9 +233,10 @@ const Deposit = () => {
                 setAmount("");
                 // const url =
                 //     "https://caixa.pay4z.com/brl/qrcode.html?tradeNo=T2501180056ijk21kJ&amount=20&payAmount=20&currency=BRL&expiredAt=2025-01-18%2001%3A11%3A31&expire=1737173491282&raw=00020101021226870014br.gov.bcb.pix2565qrcode.santsbank.com%2Fdynamic%2Fdc8cf003-1616-47f8-94e6-16be500d05b45204000053039865802BR5907LF%20LTDA6009Sao%20Paulo62070503***6304DF54&type=QRCODE";
-                if (res.data.pay_url) {
+                if (res?.data?.pay_url) {
                     eventInitiate();
                     return res.data.pay_url;
+                    // return res.data.pay_url;
                     // fix: ios 限制
                     // setTimeout(() => {
                     //     window.open(res.data.pay_url);

+ 1 - 0
src/utils/index.ts

@@ -86,6 +86,7 @@ export const goBlankPage = async (handler: Function | string, target = "_self")
     } catch (e) {
         if (newTab) newTab.close();
     }
+    console.log(href);
     if (!href) {
         if (newTab) newTab.close();
         return;