支付宝问题处理

This commit is contained in:
evoxwht 2023-06-13 15:13:47 +08:00
parent 5995482385
commit 7286d15209
3 changed files with 6 additions and 6 deletions

View File

@ -106,7 +106,7 @@ class OrderPayServices
*/
public function beforePay(array $orderInfo, string $payType, array $options = [])
{
$wehcat = $payType == PayServices::WEIXIN_PAY;
$wechat = $payType == PayServices::WEIXIN_PAY;
$payType = $this->getPayType($payType);
@ -136,8 +136,8 @@ class OrderPayServices
$options['openid'] = $openid;
break;
case PayServices::ALLIN_PAY:
if ($wehcat) {
$options['wechat'] = $wehcat;
if ($wechat) {
$options['wechat'] = $wechat;
}
break;
}

View File

@ -50,7 +50,7 @@ class AliPay extends BasePay implements PayInterface
$code = true;
}
return AliPayService::instance()->create($body, $orderId, $totalFee, $attach, $options['uitUrl'] ?? '', $options['siteUrl'] ?? '', $code);
return AliPayService::instance()->create($body, $orderId, $totalFee, $attach, $options['quitUrl'] ?? '', $options['siteUrl'] ?? '', $code);
}
/**

View File

@ -293,7 +293,7 @@
// #endif
}).then(res => {
let status = res.data.status,
orderId = res.data.result.orderId,
orderId = res.data.result.order_id,
jsConfig = res.data.result.jsConfig,
goPages = '/pages/goods/order_pay_status/index?order_id=' + this.orderId + '&msg=' +
res
@ -336,7 +336,7 @@
}
})
this.jumpData = {
orderId: res.data.result.orderId,
orderId: res.data.result.order_id,
msg: res.msg,
}
// #endif