修复支付状态问题

This commit is contained in:
kate522 committed 2026-08-24 17:21:06 +08:00
1 parent 406fb8d6a6
commit 85a124b886
21 files changed
+198 -308

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ class PaymentOrchestrator {
}
}
$stored_status = sanitize_key((string) ($stored['status'] ?? ''));
if (!in_array($stored_status, [Order::STATUS_CREATED, Order::STATUS_PENDING], true)) {
if ($stored_status !== Order::STATUS_PENDING) {
return self::fail('aksrt_order_not_payable', __('当前订单状态不可支付。', 'aksrt'));
}
$stored_method = sanitize_key((string) ($stored['payment_method'] ?? ''));