From 463e0d3eda3a1a2fbda4dd465e9cae7bdb79f86d Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 6 May 2024 14:30:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/order/RetailOrderController.php | 1 + app/common/service/wechat/WeChatConfigService.php | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/controller/order/RetailOrderController.php b/app/api/controller/order/RetailOrderController.php index 36c48ef..8497886 100644 --- a/app/api/controller/order/RetailOrderController.php +++ b/app/api/controller/order/RetailOrderController.php @@ -62,6 +62,7 @@ class RetailOrderController extends BaseApiController * @notes 创建零售订单 */ public function createOrder(){ + d(WeChatConfigService::getPayConfigByTerminal(1)); $user=User::where('id',$this->request->userId)->find(); $cartId = (Array)$this->request->post('cart_id', []); $mer_id = (Array)$this->request->post('mer_id', 0); diff --git a/app/common/service/wechat/WeChatConfigService.php b/app/common/service/wechat/WeChatConfigService.php index 7b80ba6..7ae4fda 100644 --- a/app/common/service/wechat/WeChatConfigService.php +++ b/app/common/service/wechat/WeChatConfigService.php @@ -85,8 +85,7 @@ class WeChatConfigService */ public static function getPayConfigByTerminal($terminal) { - $notifyUrl ='https://'.request()->host().'/pay/notifyMnp'; - + $notifyUrl ='https://'.request()->host().'/api/pay/notifyMnp'; $pay = PayConfig::where(['pay_way' => PayEnum::WECHAT_PAY])->findOrEmpty()->toArray(); //判断是否已经存在证书文件夹,不存在则新建 if (!file_exists(runtime_path() . '/cert')) {