修复支付状态问题
This commit is contained in:
@@ -9,16 +9,11 @@ defined('ABSPATH') || exit;
|
||||
|
||||
class Order {
|
||||
|
||||
public const STATUS_CREATED = \AKSRT\Core\DomainModel::ORDER_STATUS_CREATED;
|
||||
public const STATUS_PENDING = \AKSRT\Core\DomainModel::ORDER_STATUS_PENDING;
|
||||
public const STATUS_PAID = \AKSRT\Core\DomainModel::ORDER_STATUS_PAID;
|
||||
public const STATUS_DELIVERED = \AKSRT\Core\DomainModel::ORDER_STATUS_DELIVERED;
|
||||
public const STATUS_COMPLETED = \AKSRT\Core\DomainModel::ORDER_STATUS_COMPLETED;
|
||||
public const STATUS_CANCELLED = \AKSRT\Core\DomainModel::ORDER_STATUS_CANCELLED;
|
||||
public const STATUS_EXPIRED = \AKSRT\Core\DomainModel::ORDER_STATUS_EXPIRED;
|
||||
public const STATUS_REFUNDING = \AKSRT\Core\DomainModel::ORDER_STATUS_REFUNDING;
|
||||
public const STATUS_REFUNDED = \AKSRT\Core\DomainModel::ORDER_STATUS_REFUNDED;
|
||||
public const STATUS_PENDING_REVIEW = \AKSRT\Core\DomainModel::ORDER_STATUS_PENDING_REVIEW;
|
||||
public const STATUS_CLOSED = \AKSRT\Core\DomainModel::ORDER_STATUS_CLOSED;
|
||||
|
||||
private static $instance = null;
|
||||
|
||||
@@ -122,7 +117,7 @@ class Order {
|
||||
wp_send_json_error(['message' => __('参数无效', 'aksrt')]);
|
||||
}
|
||||
|
||||
if ($this->update_status($order_number, $new_status, ['note' => $note, 'force' => true])) {
|
||||
if ($this->update_status($order_number, $new_status, ['note' => $note])) {
|
||||
wp_send_json_success(['message' => __('订单状态已更新', 'aksrt')]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user