This commit is contained in:
wucongxing8150 2024-04-15 15:22:56 +08:00
parent 7ee7991663
commit 1edc6ca606

View File

@ -28,7 +28,7 @@ class WechatPay
/** /**
* @param string $user_type 用户类型1患者端 2:专家端 3:药师端) * @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) public function __construct(string $user_type,int $order_type)
{ {
@ -76,6 +76,13 @@ class WechatPay
$this->pay_config = config("we_chat.applets.pay.1659662936"); $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'); $app_env = config('app_env','dev');
if ($app_env == "prod"){ if ($app_env == "prod"){
$this->domain_name = env('DOMAIN_NAME_PROD','https://prod.hospital.applets.igandanyiyuan.com/'); $this->domain_name = env('DOMAIN_NAME_PROD','https://prod.hospital.applets.igandanyiyuan.com/');