diff --git a/app/Service/PaymentService.php b/app/Service/PaymentService.php index 305e678..0cf5a6e 100644 --- a/app/Service/PaymentService.php +++ b/app/Service/PaymentService.php @@ -128,8 +128,8 @@ class PaymentService extends AbstractService 'out_order_no' => $order->out_order_no, 'currency' => $order->currency, 'total_amount' => $order->amount, - 'order_time' => date('YmdHis', strtotime($order->created_at->timestamp)), - 'pay_time' => date('YmdHis', strtotime($order->created_at->timestamp)), + 'order_time' => date('YmdHis', $order->created_at->timestamp), + 'pay_time' => date('YmdHis', $order->payed_at->timestamp), 'exchange_rate' => $order->exchange_rate, 'cny_amount' => $order->cny_amount, ];