新增问诊使用成都商户号
This commit is contained in:
@@ -40,8 +40,6 @@ class WechatPay
|
||||
$this->config = config("we_chat.applets.pharmacist");
|
||||
}
|
||||
|
||||
$this->pay_config = config("we_chat.applets.pay");
|
||||
|
||||
if (empty($this->config)){
|
||||
throw new BusinessException("系统配置错误", HttpEnumCode::SERVER_ERROR);
|
||||
}
|
||||
@@ -53,16 +51,22 @@ class WechatPay
|
||||
if ($order_type == 1){
|
||||
$this->pay_notify_url = $this->config['inquiry_pay_notify_url'];
|
||||
$this->refund_notify_url = $this->config['inquiry_refund_notify_url'];
|
||||
|
||||
$this->pay_config = config("we_chat.applets.pay.1659662936");
|
||||
}
|
||||
|
||||
if ($order_type == 2){
|
||||
$this->pay_notify_url = $this->config['product_pay_notify_url'];
|
||||
$this->refund_notify_url = $this->config['product_refund_notify_url'];
|
||||
|
||||
$this->pay_config = config("we_chat.applets.pay.1636644248");
|
||||
}
|
||||
|
||||
if ($order_type == 3){
|
||||
$this->pay_notify_url = $this->config['detection_pay_notify_url'];
|
||||
$this->refund_notify_url = $this->config['detection_refund_notify_url'];
|
||||
|
||||
$this->pay_config = config("we_chat.applets.pay.1636644248");
|
||||
}
|
||||
|
||||
$app_env = config('app_env','dev');
|
||||
@@ -85,8 +89,8 @@ class WechatPay
|
||||
'mch_id' => $this->pay_config['mch_id'],
|
||||
|
||||
// 商户证书
|
||||
'private_key' => __DIR__ . '/certs/1636644248/apiclient_key.pem',
|
||||
'certificate' => __DIR__ . '/certs/1636644248/apiclient_cert.pem',
|
||||
'private_key' => __DIR__ . '/' . $this->pay_config['private_key'],
|
||||
'certificate' => __DIR__ . '/' . $this->pay_config['certificate'],
|
||||
|
||||
// v3 API 秘钥
|
||||
'secret_key' => $this->pay_config['v3_api_secret'],
|
||||
@@ -98,7 +102,7 @@ class WechatPay
|
||||
// 下载工具:https://github.com/wechatpay-apiv3/CertificateDownloader
|
||||
'platform_certs' => [
|
||||
// 请使用绝对路径
|
||||
__DIR__ . '/certs/' . $this->pay_config['mch_id'] . '/wechatpay_112FCCD1B9ECC8292703AB7363C73D74B6AFDC1A.pem',
|
||||
__DIR__ . '/certs/' . $this->pay_config['mch_id'] . '/' . $this->pay_config['platform_certs'],
|
||||
],
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user