修复支付状态问题

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

+2 -2
View File
@@ -23,7 +23,7 @@ class Revenue {
}
/**
* Create one pending creator-income record from a completed paid order.
* Create one pending creator-income record from a paid order.
*
* @param array<string,mixed> $order
*/
@@ -35,7 +35,7 @@ class Revenue {
}
$order_number = sanitize_text_field((string) ($order['order_number'] ?? ''));
if ($order_number === '' || (string) ($order['status'] ?? '') !== 'completed') {
if ($order_number === '' || (string) ($order['status'] ?? '') !== \AKSRT\Core\DomainModel::ORDER_STATUS_PAID) {
return 0;
}
$product_type = sanitize_key((string) ($order['product_type'] ?? ''));