Compare commits

..

No commits in common. "9f2b4a6b46e5f69e9dc6dfbff8a4797074cdcfcb" and "b4d3be87858b2d3bd9de3f5c2f8f7d3718cdeeda" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View File

@ -100,17 +100,17 @@ abstract class PaymentService
],
// 支付宝支持配置(不需要的直接注释)
self::PAYMENT_ALIPAY_WAP => [
'type' => self::PAYMENT_ALIPAY_WAP,
'type' => '',
'name' => '支付宝WAP支付',
'bind' => [UserAdminService::API_TYPE_WAP],
],
self::PAYMENT_ALIPAY_WEB => [
'type' => self::PAYMENT_ALIPAY_WEB,
'type' => '',
'name' => '支付宝WEB支付',
'bind' => [UserAdminService::API_TYPE_WEB],
],
self::PAYMENT_ALIAPY_APP => [
'type' => self::PAYMENT_ALIAPY_APP,
'type' => '',
'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_ALIAPY_APP) {
if ($tradeType === static::PAYMENT_WECHAT_APP) {
$payment = App::instance($this->config);
} elseif ($tradeType === static::PAYMENT_ALIPAY_WAP) {
$payment = Wap::instance($this->config);