From 84ad71dc69343a46dbf39e4956ae49d921ff81de Mon Sep 17 00:00:00 2001 From: ljl Date: Tue, 15 Aug 2023 16:18:30 +0800 Subject: [PATCH] yh --- app/Controller/Payment/NotifyController.php | 1 + app/Model/RequestLog.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/app/Controller/Payment/NotifyController.php b/app/Controller/Payment/NotifyController.php index 50952e3..8e70c53 100644 --- a/app/Controller/Payment/NotifyController.php +++ b/app/Controller/Payment/NotifyController.php @@ -119,6 +119,7 @@ class NotifyController extends AbstractController $requestLog->getDataValue('notifyUrl'), $requestLog->app, [ + 'amount' => $order->amount, 'status' => $order->status, 'userId' => $order->user_id, 'orderNo' => $order->order_no, diff --git a/app/Model/RequestLog.php b/app/Model/RequestLog.php index 642be05..cef7716 100644 --- a/app/Model/RequestLog.php +++ b/app/Model/RequestLog.php @@ -12,6 +12,11 @@ class RequestLog extends Model 'request_data' => 'array', ]; + public function app() + { + return $this->belongsTo(App::class, 'app_id', 'app_id'); + } + public function generateToken() { return md5($this->app_id . '_' . $this->request_id); }