Skip to content

Commit

Permalink
[更新]修改文件注释,去除多冗余代码
Browse files Browse the repository at this point in the history
  • Loading branch information
zoujingli committed Dec 2, 2017
1 parent 32b4476 commit 6472c19
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 9 deletions.
5 changes: 4 additions & 1 deletion src/Gateways/Alipay/Alipay.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public function apply(array $options)
* @param array|string $options 退款参数或退款商户订单号
* @param null $refund_amount 退款金额
* @return array|bool
* @throws GatewayException
*/
public function refund($options, $refund_amount = null)
{
Expand All @@ -105,8 +106,9 @@ public function refund($options, $refund_amount = null)

/**
* 关闭支付宝进行中的订单
* @param $options
* @param array|string $options
* @return array|bool
* @throws GatewayException
*/
public function close($options)
{
Expand All @@ -120,6 +122,7 @@ public function close($options)
* 查询支付宝订单状态
* @param string $out_trade_no
* @return array|bool
* @throws GatewayException
*/
public function find($out_trade_no = '')
{
Expand Down
1 change: 1 addition & 0 deletions src/Gateways/Alipay/BillGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ protected function getProductCode()
* 应用并返回参数
* @param array $options
* @return array|bool
* @throws \Pay\Exceptions\GatewayException
*/
public function apply(array $options = [])
{
Expand Down
1 change: 1 addition & 0 deletions src/Gateways/Alipay/PosGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ protected function getProductCode()
* @param array $options
* @param string $scene
* @return array|bool
* @throws \Pay\Exceptions\GatewayException
*/
public function apply(array $options = [], $scene = 'bar_code')
{
Expand Down
1 change: 1 addition & 0 deletions src/Gateways/Alipay/ScanGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ protected function getProductCode()
* 应用并返回参数
* @param array $options
* @return array|bool
* @throws \Pay\Exceptions\GatewayException
*/
public function apply(array $options = [])
{
Expand Down
1 change: 1 addition & 0 deletions src/Gateways/Alipay/TransferGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ protected function getProductCode()
* 应用并返回参数
* @param array $options
* @return array|bool
* @throws \Pay\Exceptions\GatewayException
*/
public function apply(array $options = [])
{
Expand Down
1 change: 1 addition & 0 deletions src/Gateways/Wechat/AppGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ protected function getTradeType()
* 应用并返回参数
* @param array $options
* @return array
* @throws \Pay\Exceptions\GatewayException
*/
public function apply(array $options = [])
{
Expand Down
3 changes: 1 addition & 2 deletions src/Gateways/Wechat/MiniappGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

namespace Pay\Gateways\Wechat;

use Pay\Exceptions\InvalidArgumentException;

/**
* 微信小程序支付网关
* Class MiniappGateway
Expand All @@ -35,6 +33,7 @@ protected function getTradeType()
* 应用并返回参数
* @param array $options
* @return array
* @throws \Pay\Exceptions\GatewayException
*/
public function apply(array $options = [])
{
Expand Down
3 changes: 1 addition & 2 deletions src/Gateways/Wechat/MpGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

namespace Pay\Gateways\Wechat;

use Pay\Exceptions\InvalidArgumentException;

/**
* 微信公众号支付网关
* Class MpGateway
Expand All @@ -34,6 +32,7 @@ protected function getTradeType()
* 设置并返回参数
* @param array $options
* @return array
* @throws \Pay\Exceptions\GatewayException
*/
public function apply(array $options = [])
{
Expand Down
3 changes: 1 addition & 2 deletions src/Gateways/Wechat/PosGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

namespace Pay\Gateways\Wechat;

use Pay\Exceptions\InvalidArgumentException;

/**
* 微信POS刷卡支付网关
* Class PosGateway
Expand All @@ -35,6 +33,7 @@ protected function getTradeType()
* 应用并返回参数
* @param array $options
* @return array
* @throws \Pay\Exceptions\GatewayException
*/
public function apply(array $options = [])
{
Expand Down
3 changes: 1 addition & 2 deletions src/Gateways/Wechat/ScanGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

namespace Pay\Gateways\Wechat;

use Pay\Exceptions\InvalidArgumentException;

/**
* 微信扫码支付网关
* Class ScanGateway
Expand All @@ -35,6 +33,7 @@ protected function getTradeType()
* 应用并返回参数
* @param array $options
* @return mixed
* @throws \Pay\Exceptions\GatewayException
*/
public function apply(array $options = [])
{
Expand Down
1 change: 1 addition & 0 deletions src/Gateways/Wechat/WapGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ protected function getTradeType()
* 应用并生成参数
* @param array $options
* @return string
* @throws \Pay\Exceptions\GatewayException
*/
public function apply(array $options = [])
{
Expand Down

0 comments on commit 6472c19

Please sign in to comment.