From 82584cb18dd49655a5e0bc40ce6fbdcd3de8bcdf Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Sun, 17 Apr 2022 02:17:20 +0800 Subject: [PATCH] update: payment --- app/Services/PaymentService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/PaymentService.php b/app/Services/PaymentService.php index 7bd869cc..3c7140df 100644 --- a/app/Services/PaymentService.php +++ b/app/Services/PaymentService.php @@ -39,7 +39,7 @@ class PaymentService public function pay($order) { // custom notify domain name - $notifyUrl = url("/api/v1/guest/payment/notify/{$this->method}/{$this->config['uuid']}"); + $notifyUrl = config('v2board.app_url', env('APP_URL')) . "/api/v1/guest/payment/notify/{$this->method}/{$this->config['uuid']}"; if ($this->config['notify_domain']) { $parseUrl = parse_url($notifyUrl); $notifyUrl = $this->config['notify_domain'] . $parseUrl['path'];