From e9b3e79b568199062701e9c16c91c4541d172560 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Sat, 17 Jun 2023 15:29:26 +0800 Subject: [PATCH] yh --- app/Helper/Efps/Api.php | 4 ++-- app/Service/PaymentService.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Helper/Efps/Api.php b/app/Helper/Efps/Api.php index 2276a42..a4237ef 100644 --- a/app/Helper/Efps/Api.php +++ b/app/Helper/Efps/Api.php @@ -132,7 +132,7 @@ class Api extends AbstractApi 'payCurrency' => 'CNY', 'isInstalments' => 0, 'isSendSmsCode' => 2, - 'notifyUrl' => 'http://146.70.113.165:9501/notify/payment', + 'notifyUrl' => env('WEB_HOST') . '/notify/payment', 'transactionStartTime' => date('YmdHis'), 'nonceStr' => StringHelper::getRandomString(32), ]; @@ -180,7 +180,7 @@ class Api extends AbstractApi 'refundAmount' => $refundAmount, 'amount' => $amount, 'remark' => $remark, - 'notifyUrl' => 'http://146.70.113.165:9501/notify/refund', + 'notifyUrl' => env('WEB_HOST') . '/notify/refund', 'nonceStr' => StringHelper::getRandomString(32), ]; $sign = Signer::sign(json_encode($params)); diff --git a/app/Service/PaymentService.php b/app/Service/PaymentService.php index 601c937..09a8aff 100644 --- a/app/Service/PaymentService.php +++ b/app/Service/PaymentService.php @@ -373,7 +373,7 @@ class PaymentService extends AbstractService $log->token = $token; $log->save(); - return ['payUrl' => 'http://146.70.113.165:9501/payment.html?token=' . $token]; + return ['payUrl' => env('WEB_HOST') . '/payment.html?token=' . $token]; } public function query($params)