diff --git a/src/Gateways/Alipay/Alipay.php b/src/Gateways/Alipay/Alipay.php index acea97f..086c4cf 100644 --- a/src/Gateways/Alipay/Alipay.php +++ b/src/Gateways/Alipay/Alipay.php @@ -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) { @@ -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) { @@ -120,6 +122,7 @@ public function close($options) * 查询支付宝订单状态 * @param string $out_trade_no * @return array|bool + * @throws GatewayException */ public function find($out_trade_no = '') { diff --git a/src/Gateways/Alipay/BillGateway.php b/src/Gateways/Alipay/BillGateway.php index 536d299..4fc2117 100644 --- a/src/Gateways/Alipay/BillGateway.php +++ b/src/Gateways/Alipay/BillGateway.php @@ -43,6 +43,7 @@ protected function getProductCode() * 应用并返回参数 * @param array $options * @return array|bool + * @throws \Pay\Exceptions\GatewayException */ public function apply(array $options = []) { diff --git a/src/Gateways/Alipay/PosGateway.php b/src/Gateways/Alipay/PosGateway.php index 7df0513..8fc795a 100644 --- a/src/Gateways/Alipay/PosGateway.php +++ b/src/Gateways/Alipay/PosGateway.php @@ -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') { diff --git a/src/Gateways/Alipay/ScanGateway.php b/src/Gateways/Alipay/ScanGateway.php index 7d435f1..bc644d2 100644 --- a/src/Gateways/Alipay/ScanGateway.php +++ b/src/Gateways/Alipay/ScanGateway.php @@ -42,6 +42,7 @@ protected function getProductCode() * 应用并返回参数 * @param array $options * @return array|bool + * @throws \Pay\Exceptions\GatewayException */ public function apply(array $options = []) { diff --git a/src/Gateways/Alipay/TransferGateway.php b/src/Gateways/Alipay/TransferGateway.php index 4b47e3d..832f0d0 100644 --- a/src/Gateways/Alipay/TransferGateway.php +++ b/src/Gateways/Alipay/TransferGateway.php @@ -42,6 +42,7 @@ protected function getProductCode() * 应用并返回参数 * @param array $options * @return array|bool + * @throws \Pay\Exceptions\GatewayException */ public function apply(array $options = []) { diff --git a/src/Gateways/Wechat/AppGateway.php b/src/Gateways/Wechat/AppGateway.php index 340049a..a6a54f7 100644 --- a/src/Gateways/Wechat/AppGateway.php +++ b/src/Gateways/Wechat/AppGateway.php @@ -33,6 +33,7 @@ protected function getTradeType() * 应用并返回参数 * @param array $options * @return array + * @throws \Pay\Exceptions\GatewayException */ public function apply(array $options = []) { diff --git a/src/Gateways/Wechat/MiniappGateway.php b/src/Gateways/Wechat/MiniappGateway.php index b8303ae..30ec0b4 100644 --- a/src/Gateways/Wechat/MiniappGateway.php +++ b/src/Gateways/Wechat/MiniappGateway.php @@ -12,8 +12,6 @@ namespace Pay\Gateways\Wechat; -use Pay\Exceptions\InvalidArgumentException; - /** * 微信小程序支付网关 * Class MiniappGateway @@ -35,6 +33,7 @@ protected function getTradeType() * 应用并返回参数 * @param array $options * @return array + * @throws \Pay\Exceptions\GatewayException */ public function apply(array $options = []) { diff --git a/src/Gateways/Wechat/MpGateway.php b/src/Gateways/Wechat/MpGateway.php index ad9cf8d..16e173d 100644 --- a/src/Gateways/Wechat/MpGateway.php +++ b/src/Gateways/Wechat/MpGateway.php @@ -12,8 +12,6 @@ namespace Pay\Gateways\Wechat; -use Pay\Exceptions\InvalidArgumentException; - /** * 微信公众号支付网关 * Class MpGateway @@ -34,6 +32,7 @@ protected function getTradeType() * 设置并返回参数 * @param array $options * @return array + * @throws \Pay\Exceptions\GatewayException */ public function apply(array $options = []) { diff --git a/src/Gateways/Wechat/PosGateway.php b/src/Gateways/Wechat/PosGateway.php index 12d24a3..2edf79b 100644 --- a/src/Gateways/Wechat/PosGateway.php +++ b/src/Gateways/Wechat/PosGateway.php @@ -12,8 +12,6 @@ namespace Pay\Gateways\Wechat; -use Pay\Exceptions\InvalidArgumentException; - /** * 微信POS刷卡支付网关 * Class PosGateway @@ -35,6 +33,7 @@ protected function getTradeType() * 应用并返回参数 * @param array $options * @return array + * @throws \Pay\Exceptions\GatewayException */ public function apply(array $options = []) { diff --git a/src/Gateways/Wechat/ScanGateway.php b/src/Gateways/Wechat/ScanGateway.php index 1975cdd..63e6973 100644 --- a/src/Gateways/Wechat/ScanGateway.php +++ b/src/Gateways/Wechat/ScanGateway.php @@ -12,8 +12,6 @@ namespace Pay\Gateways\Wechat; -use Pay\Exceptions\InvalidArgumentException; - /** * 微信扫码支付网关 * Class ScanGateway @@ -35,6 +33,7 @@ protected function getTradeType() * 应用并返回参数 * @param array $options * @return mixed + * @throws \Pay\Exceptions\GatewayException */ public function apply(array $options = []) { diff --git a/src/Gateways/Wechat/WapGateway.php b/src/Gateways/Wechat/WapGateway.php index 24a800b..6856ed8 100644 --- a/src/Gateways/Wechat/WapGateway.php +++ b/src/Gateways/Wechat/WapGateway.php @@ -33,6 +33,7 @@ protected function getTradeType() * 应用并生成参数 * @param array $options * @return string + * @throws \Pay\Exceptions\GatewayException */ public function apply(array $options = []) {