修改微信支付
This commit is contained in:
@@ -61,9 +61,9 @@ class WechatPay
|
||||
|
||||
$app_env = config('app_env','dev');
|
||||
if ($app_env == "prod"){
|
||||
$this->domain_name = env('DOMAIN_NAME_DEV','https://dev.hospital.applets.igandanyiyuan.com/');
|
||||
}else{
|
||||
$this->domain_name = env('DOMAIN_NAME_PROD','https://prod.hospital.applets.igandanyiyuan.com/');
|
||||
}else{
|
||||
$this->domain_name = env('DOMAIN_NAME_DEV','https://dev.hospital.applets.igandanyiyuan.com/');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ class WechatPay
|
||||
"openid" => $openid // 下单用户的 openid
|
||||
]
|
||||
];
|
||||
dump($options);
|
||||
|
||||
try {
|
||||
$response = $app->getClient()->postJson("v3/pay/transactions/jsapi", $options);
|
||||
if ($response->isFailed()) {
|
||||
|
||||
Reference in New Issue
Block a user