Compare commits

...

2 Commits

Author SHA1 Message Date
邹景立
9f2b4a6b46 修改支付宝支付 2022-11-09 17:48:13 +08:00
邹景立
c1e26665bf 修正支持 2022-11-09 17:15:40 +08:00
2 changed files with 4 additions and 4 deletions

View File

@ -100,17 +100,17 @@ abstract class PaymentService
],
// 支付宝支持配置(不需要的直接注释)
self::PAYMENT_ALIPAY_WAP => [
'type' => '',
'type' => self::PAYMENT_ALIPAY_WAP,
'name' => '支付宝WAP支付',
'bind' => [UserAdminService::API_TYPE_WAP],
],
self::PAYMENT_ALIPAY_WEB => [
'type' => '',
'type' => self::PAYMENT_ALIPAY_WEB,
'name' => '支付宝WEB支付',
'bind' => [UserAdminService::API_TYPE_WEB],
],
self::PAYMENT_ALIAPY_APP => [
'type' => '',
'type' => self::PAYMENT_ALIAPY_APP,
'name' => '支付宝APP支付',
'bind' => [UserAdminService::API_TYPE_ANDROID, UserAdminService::API_TYPE_IOSAPP],
],

View File

@ -52,7 +52,7 @@ class AlipayPaymentService extends PaymentService
$this->config['return_url'] = $payReturn;
}
}
if ($tradeType === static::PAYMENT_WECHAT_APP) {
if ($tradeType === static::PAYMENT_ALIAPY_APP) {
$payment = App::instance($this->config);
} elseif ($tradeType === static::PAYMENT_ALIPAY_WAP) {
$payment = Wap::instance($this->config);