Skip to content

Commit

Permalink
feat(alipay): specified_channel set default value.
Browse files Browse the repository at this point in the history
  • Loading branch information
dayu committed May 4, 2020
1 parent c3a7789 commit db7a4e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Gateways/Alipay/AppCharge.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected function getBizContent(array $requestParams)
// 使用禁用列表
//'enable_pay_channels' => '',
'store_id' => $requestParams['store_id'] ?? '',
'specified_channel' => 'pcredit',
'specified_channel' => $requestParams['specified_channel'] ?? 'pcredit', //支付宝原因,当前仅支持 pcredit
'disable_pay_channels' => implode(self::$config->get('limit_pay', ''), ','),
'ext_user_info' => $requestParams['ext_user_info'] ?? '',
'business_params' => $requestParams['business_params'] ?? '',
Expand Down
2 changes: 1 addition & 1 deletion src/Gateways/Alipay/WapCharge.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected function getBizContent(array $requestParams)
//'enable_pay_channels' => '',
'disable_pay_channels' => implode(self::$config->get('limit_pay', ''), ','),
'store_id' => $requestParams['store_id'] ?? '',
'specified_channel' => $requestParams['specified_channel'] ?? '',
'specified_channel' => $requestParams['specified_channel'] ?? 'pcredit', //支付宝原因,当前仅支持 pcredit
'business_params' => $requestParams['business_params'] ?? '',
'ext_user_info' => $requestParams['ext_user_info'] ?? '',
];
Expand Down
2 changes: 1 addition & 1 deletion src/Supports/BaseObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/
abstract class BaseObject
{
const VERSION = '5.0.2';
const VERSION = '5.0.3';

/**
* @var Config
Expand Down

0 comments on commit db7a4e0

Please sign in to comment.