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); }