fix fix fix

This commit is contained in:
2026-04-28 00:55:05 +08:00
parent 3f11669367
commit 0ddcfcf7c6
5 changed files with 435 additions and 4 deletions

View File

@@ -140,6 +140,10 @@
background: linear-gradient(135deg, #00897b, #4db6ac);
}
.c-gpay {
background: linear-gradient(135deg, #1a73e8, #34a853);
}
.c-upi {
background: linear-gradient(135deg, #37474f, #78909c);
}
@@ -192,6 +196,7 @@
<option value="paytm">Paytm</option>
<option value="phonepe">PhonePe (native p2p)</option>
<option value="phonepe_pay">PhonePe (pay)</option>
<option value="gpay">Google Pay</option>
<option value="mobikwik">MobiKwik</option>
<option value="freecharge">Freecharge</option>
<option value="upi">Other UPI</option>
@@ -253,7 +258,7 @@
bharatpe_biz: {
label: 'BharatPe Business',
pa: 'BHARATPE.8A0T1R2O5E77327@fbpe', pn: 'BharatPe Merchant',
extra: () => '&tn=Pay%20To%20BharatPe%20Merchant',
extra: () => '&tn=Pay+To+BharatPe+Merchant',
warn: null,
},
paytm_per: {
@@ -276,7 +281,7 @@
},
freecharge_per: {
label: 'Freecharge Personal',
pa: 'simple6812@freecharge', pn: 'Gurvir Singh',
pa: '9124307439@freecharge', pn: 'Niranjan Mishra',
extra: () => '',
warn: null,
},
@@ -310,6 +315,7 @@
paytm: (pa, pn, am, extra) => `paytmmp://cash_wallet?featuretype=money_transfer&pa=${pa}&pn=${pn}&am=${am}&cu=INR&mc=0000&mode=02&purpose=00&orgid=159002${extra}`,
phonepe: (pa, pn, am) => phonepeNative(pa, pn, am, 'payment'),
phonepe_pay: (pa, pn, am, extra) => `phonepe://pay?pa=${pa}&pn=${pn}&am=${am}&cu=INR${extra}`,
gpay: (pa, pn, am, extra) => `tez://upi/pay?pa=${pa}&pn=${pn}&am=${am}&cu=INR${extra}`,
mobikwik: (pa, pn, am, extra) => { const tn = (extra.match(/[?&]tn=([^&]*)/) || [])[1] || 'payment'; return `mobikwik://moneytransfer/upi/verifyVpa?vpa=${encodeURIComponent(pa)}&amount=${am}&note=${tn}`; },
freecharge: (pa, pn, am, extra) => `freechargeupi://pay?pa=${pa}&pn=${pn}&am=${am}&cu=INR${extra}`,
// fallback 在 scheduleAutoClick 里处理
@@ -318,7 +324,7 @@
const APP_COLORS = {
paytm: 'c-paytm', phonepe: 'c-phonepe', phonepe_pay: 'c-phonepe',
mobikwik: 'c-mobikwik', freecharge: 'c-freecharge', upi: 'c-upi',
gpay: 'c-gpay', mobikwik: 'c-mobikwik', freecharge: 'c-freecharge', upi: 'c-upi',
};
const PHONEPE_WALLETS = new Set(['phonepe_biz', 'phonepe_per']);