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')) {