修改提取IP接口里的callPublic调用 & 修复余额支付已完成的状态 & 手机端点击支付增加新窗口

This commit is contained in:
Eamon-meng
2025-12-01 19:18:06 +08:00
parent b0a0b37b19
commit 3a5f4220ad
5 changed files with 17 additions and 73 deletions

View File

@@ -12,10 +12,13 @@ export function MobilePayment(props: PaymentModalProps) {
const [paymentInitiated, setPaymentInitiated] = useState(false) // 是否已发起支付
// 处理确认支付
const handleConfirmPayment = async () => {
const handleConfirmPayment = () => {
try {
// 在新窗口打开支付链接
window.location.href = props.pay_url
const newWindow = window.open(props.pay_url, '_blank')
if (!newWindow) {
toast.error('请允许弹出窗口以完成支付')
return
}
setPaymentInitiated(true)
}
catch (error) {