瀏覽代碼

支付宝真机调试

zbb 3 月之前
父節點
當前提交
e2f1e61b54
共有 2 個文件被更改,包括 2 次插入4 次删除
  1. 1 4
      app.json
  2. 1 0
      app/award-detail/components/CheckoutModal.tsx

+ 1 - 4
app.json

@@ -5,10 +5,7 @@
     "version": "1.0.0",
     "orientation": "portrait",
     "icon": "./assets/images/icon.png",
-    "scheme": [
-      "asios",
-      "alipay2021004126636720"
-    ],
+    "scheme": ["asios", "alipay2021005175632205"],
     "userInterfaceStyle": "automatic",
     "newArchEnabled": true,
     "ios": {

+ 1 - 0
app/award-detail/components/CheckoutModal.tsx

@@ -174,6 +174,7 @@ export const CheckoutModal = forwardRef<CheckoutModalRef, CheckoutModalProps>(
         
         // Handle Alipay Response
         if (res?.payInfo) {
+             Alipay.setAlipayScheme('alipay2021005175632205');
              const result = await Alipay.pay(res.payInfo);
              console.log('Alipay Result:', result);
              const resultStatus = result?.resultStatus;