mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2026-09-05 07:27:50 +08:00
fix: 修改代码注释
This commit is contained in:
parent
780e1fcedb
commit
d923c00feb
@ -26,8 +26,8 @@ class App extends BasicAliPay
|
||||
{
|
||||
|
||||
/**
|
||||
* App constructor.
|
||||
* @param array $options
|
||||
* 构造函数
|
||||
* @param array $options 支付宝配置参数
|
||||
*/
|
||||
public function __construct(array $options)
|
||||
{
|
||||
|
||||
@ -25,8 +25,8 @@ use WeChat\Contracts\BasicAliPay;
|
||||
class Bill extends BasicAliPay
|
||||
{
|
||||
/**
|
||||
* Bill constructor.
|
||||
* @param array $options
|
||||
* 构造函数
|
||||
* @param array $options 支付宝配置参数
|
||||
*/
|
||||
public function __construct(array $options)
|
||||
{
|
||||
@ -37,7 +37,7 @@ class Bill extends BasicAliPay
|
||||
/**
|
||||
* 获取账单下载地址
|
||||
* @param array $options 账单参数(bill_type, bill_date 等)
|
||||
* @return array|bool 包含 bill_download_url
|
||||
* @return array 包含 bill_download_url 的响应数据
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
|
||||
@ -25,8 +25,8 @@ use WeChat\Contracts\BasicAliPay;
|
||||
class Pos extends BasicAliPay
|
||||
{
|
||||
/**
|
||||
* Pos constructor.
|
||||
* @param array $options
|
||||
* 构造函数
|
||||
* @param array $options 支付宝配置参数
|
||||
*/
|
||||
public function __construct(array $options)
|
||||
{
|
||||
@ -38,7 +38,7 @@ class Pos extends BasicAliPay
|
||||
/**
|
||||
* 刷卡支付(条码/声波)下单
|
||||
* @param array $options 订单参数(out_trade_no, auth_code, subject, total_amount 等)
|
||||
* @return array|bool 支付结果
|
||||
* @return array 支付结果
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
|
||||
@ -25,8 +25,8 @@ use WeChat\Contracts\BasicAliPay;
|
||||
class Scan extends BasicAliPay
|
||||
{
|
||||
/**
|
||||
* Scan constructor.
|
||||
* @param array $options
|
||||
* 构造函数
|
||||
* @param array $options 支付宝配置参数
|
||||
*/
|
||||
public function __construct(array $options)
|
||||
{
|
||||
@ -37,7 +37,7 @@ class Scan extends BasicAliPay
|
||||
/**
|
||||
* 预创建扫码支付订单(返回二维码地址)
|
||||
* @param array $options 订单参数(out_trade_no, subject, total_amount 等)
|
||||
* @return array|bool 包含 qr_code 的预下单结果
|
||||
* @return array 包含 qr_code 的预下单结果
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
|
||||
@ -70,7 +70,7 @@ class Trade extends BasicAliPay
|
||||
/**
|
||||
* 执行当前设置的交易接口
|
||||
* @param array $options 业务参数(写入 biz_content)
|
||||
* @return array|boolean 接口返回结果
|
||||
* @return array 接口返回结果
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
|
||||
@ -28,7 +28,7 @@ class Transfer extends BasicAliPay
|
||||
/**
|
||||
* 旧版:向支付宝账户转账(toaccount.transfer)
|
||||
* @param array $options 转账参数(out_biz_no, payee_type, payee_account, amount, remark 等)
|
||||
* @return array|bool 转账结果
|
||||
* @return array 转账结果
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
@ -41,7 +41,7 @@ class Transfer extends BasicAliPay
|
||||
/**
|
||||
* 新版:统一转账接口(uni.transfer)
|
||||
* @param array $options 转账参数(out_biz_no, trans_amount, product_code, payee_info 等)
|
||||
* @return array|bool 转账结果
|
||||
* @return array 转账结果
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
@ -54,7 +54,7 @@ class Transfer extends BasicAliPay
|
||||
/**
|
||||
* 新版:转账业务单据查询
|
||||
* @param array $options 查询参数(out_biz_no 或 order_id)
|
||||
* @return array|bool 查询结果
|
||||
* @return array 查询结果
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
@ -67,7 +67,7 @@ class Transfer extends BasicAliPay
|
||||
/**
|
||||
* 新版:资金账户余额查询
|
||||
* @param array $options 查询参数(alipay_user_id 或 user_id,可选 account_type)
|
||||
* @return array|bool 账户余额等信息
|
||||
* @return array 账户余额等信息
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
|
||||
@ -25,8 +25,8 @@ use WeChat\Contracts\BasicAliPay;
|
||||
class Wap extends BasicAliPay
|
||||
{
|
||||
/**
|
||||
* Wap constructor.
|
||||
* @param array $options
|
||||
* 构造函数
|
||||
* @param array $options 支付宝配置参数
|
||||
*/
|
||||
public function __construct(array $options)
|
||||
{
|
||||
|
||||
@ -25,8 +25,8 @@ use WeChat\Contracts\BasicAliPay;
|
||||
class Web extends BasicAliPay
|
||||
{
|
||||
/**
|
||||
* Web constructor.
|
||||
* @param array $options
|
||||
* 构造函数
|
||||
* @param array $options 支付宝配置参数
|
||||
*/
|
||||
public function __construct(array $options)
|
||||
{
|
||||
|
||||
@ -53,8 +53,8 @@ abstract class BasicAliPay
|
||||
protected $gateway = 'https://openapi.alipay.com/gateway.do?charset=utf-8';
|
||||
|
||||
/**
|
||||
* AliPay constructor.
|
||||
* @param array $options
|
||||
* 构造函数
|
||||
* @param array $options 必填:appid、public_key、private_key,可选:app_cert、root_cert、cache_path
|
||||
*/
|
||||
public function __construct($options)
|
||||
{
|
||||
@ -121,8 +121,8 @@ abstract class BasicAliPay
|
||||
|
||||
/**
|
||||
* 查询支付宝订单状态
|
||||
* @param string $outTradeNo
|
||||
* @return array|boolean
|
||||
* @param string $outTradeNo 商户订单号
|
||||
* @return array 订单查询结果
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
@ -134,8 +134,8 @@ abstract class BasicAliPay
|
||||
|
||||
/**
|
||||
* 请求接口并验证访问数据
|
||||
* @param array $options
|
||||
* @return array|boolean
|
||||
* @param array $options 请求参数
|
||||
* @return array 接口响应数据
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
@ -318,8 +318,8 @@ abstract class BasicAliPay
|
||||
/**
|
||||
* 支付宝订单退款操作
|
||||
* @param array|string $options 退款参数或退款商户订单号
|
||||
* @param null $refundAmount 退款金额
|
||||
* @return array|boolean
|
||||
* @param string|null $refundAmount 退款金额
|
||||
* @return array 退款结果
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
@ -334,7 +334,7 @@ abstract class BasicAliPay
|
||||
* 支付宝订单退款查询
|
||||
* @param array|string $options 退款参数或退款商户订单号
|
||||
* @param array|null $queryOptions 查询选项
|
||||
* @return array|bool
|
||||
* @return array 退款查询结果
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
@ -348,8 +348,8 @@ abstract class BasicAliPay
|
||||
|
||||
/**
|
||||
* 关闭支付宝进行中的订单
|
||||
* @param array|string $options
|
||||
* @return array|boolean
|
||||
* @param array|string $options 订单参数或商户订单号
|
||||
* @return array 关闭结果
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
|
||||
@ -58,8 +58,8 @@ class BasicWeChat
|
||||
protected $GetAccessTokenCallback;
|
||||
|
||||
/**
|
||||
* BasicWeChat constructor.
|
||||
* @param array $options
|
||||
* 构造函数
|
||||
* @param array $options 必填:appid、appsecret,可选:GetAccessTokenCallback、cache_path
|
||||
*/
|
||||
public function __construct(array $options)
|
||||
{
|
||||
@ -106,11 +106,11 @@ class BasicWeChat
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册当前请求接口
|
||||
* @param string $url 接口地址
|
||||
* @param string $method 当前接口方法
|
||||
* 注册当前请求接口(自动处理 ACCESS_TOKEN)
|
||||
* @param string $url 接口地址(引用传递,会被修改)
|
||||
* @param string $method 当前接口方法名
|
||||
* @param array $arguments 请求参数
|
||||
* @return string
|
||||
* @return string 替换 ACCESS_TOKEN 后的 URL
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user