浏览代码

update: payment

tokumeikoi 3 年之前
父节点
当前提交
82584cb18d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Services/PaymentService.php

+ 1 - 1
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'];