From fddf74d67b56d9065bfbcfeafd2c4a0d35ab0a05 Mon Sep 17 00:00:00 2001 From: ljl Date: Fri, 28 Apr 2023 13:39:18 +0800 Subject: [PATCH] yh --- app/Service/PaymentService.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/Service/PaymentService.php b/app/Service/PaymentService.php index d40c21f..305e678 100644 --- a/app/Service/PaymentService.php +++ b/app/Service/PaymentService.php @@ -116,7 +116,7 @@ class PaymentService extends AbstractService return 'SUCCESS'; } - protected function buildNotifyParams(Order $roder, App $app) { + protected function buildNotifyParams(Order $order, App $app) { $params = [ 'app_id' => $order->app_id, 'nonce_str' => StringHelper::getRandomString(32), @@ -124,14 +124,14 @@ class PaymentService extends AbstractService ]; $bizData = [ 'code' => 'SUCCESS', - 'order_no' => $roder->order_no, - 'out_order_no' => $roder->out_order_no, - 'currency' => $roder->currency, - 'total_amount' => $roder->amount, - 'order_time' => date('YmdHis', strtotime($roder->created_at)), - 'pay_time' => date('YmdHis', strtotime($roder->payed_at)), - 'exchange_rate' => $roder->exchange_rate, - 'cny_amount' => $roder->cny_amount, + 'order_no' => $order->order_no, + '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)), + 'exchange_rate' => $order->exchange_rate, + 'cny_amount' => $order->cny_amount, ]; $params['data'] = json_encode($bizData); $params['sign'] = PlatformSigner::sign($params, $app->app_key);