From 1edc6ca606a0a146d93aead6f07185c133641f5a Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Mon, 15 Apr 2024 15:22:56 +0800 Subject: [PATCH] 5 --- extend/Wechat/WechatPay.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/extend/Wechat/WechatPay.php b/extend/Wechat/WechatPay.php index fee9ee2..18b276c 100644 --- a/extend/Wechat/WechatPay.php +++ b/extend/Wechat/WechatPay.php @@ -28,7 +28,7 @@ class WechatPay /** * @param string $user_type 用户类型(1:患者端 2:专家端 3:药师端) - * @param int $order_type 订单类型(1:问诊订单 2:药品订单 3:检测订单 4:服务包订单) + * @param int $order_type 订单类型(1:问诊订单 2:药品订单 3:检测订单 4:健康包订单 5:随访包订单) */ public function __construct(string $user_type,int $order_type) { @@ -76,6 +76,13 @@ class WechatPay $this->pay_config = config("we_chat.applets.pay.1659662936"); } + if ($order_type == 5){ + $this->pay_notify_url = $this->config['service_pay_notify_url']; + $this->refund_notify_url = $this->config['service_refund_notify_url']; + + $this->pay_config = config("we_chat.applets.pay.1659662936"); + } + $app_env = config('app_env','dev'); if ($app_env == "prod"){ $this->domain_name = env('DOMAIN_NAME_PROD','https://prod.hospital.applets.igandanyiyuan.com/');