소스 검색

支付宝真机调试

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;