This commit is contained in:
dengqichen 2025-11-17 00:14:54 +08:00
parent 585d374140
commit 6dd4763cda

View File

@ -719,7 +719,7 @@ class WindsurfRegister {
// 验证是否进入支付页面检查是否有Stripe元素或支付表单
const hasPaymentForm = await this.page.$('button[data-testid="card-accordion-item-button"]').then(el => !!el).catch(() => false);
const hasStripeCheckout = await this.page.url().then(url => url.includes('checkout.stripe.com')).catch(() => false);
const hasStripeCheckout = this.page.url().includes('checkout.stripe.com');
if (hasPaymentForm || hasStripeCheckout) {
logger.success(this.siteName, ' → ✓ 已进入支付页面');