修复两个问题

This commit is contained in:
kate522 committed 2026-08-24 16:38:03 +08:00
1 parent 48a82403b2
commit 58f3f42bf8
15 files changed
+173 -23

No files matched your search

+2 -2
View File
@@ -28,9 +28,9 @@ final class CommissionLedger {
? true
: new \WP_Error('aksrt_commission_write_failed', __('返佣记录写入失败', 'aksrt'), ['status' => 500]);
}
public function record_points_exchange(int $user_id, string $amount, int $points, string $operation_key): bool {
public function record_points_exchange(int $user_id, string $amount, int $points, string $operation_key, string $order_number): bool {
$result = $this->record_paid_order([
'order_number' => 'PX' . substr(hash('sha256', $operation_key), 0, 30),
'order_number' => $order_number,
'product_type' => 'credits',
'user_id' => $user_id,
'amount' => $amount,