修改注释

This commit is contained in:
Anyon 2020-12-17 17:17:40 +08:00
parent eb5c4f6ab5
commit f726a62718
2 changed files with 14 additions and 14 deletions

View File

@ -20,7 +20,7 @@ use WeChat\Exceptions\LocalCacheException;
use WePayV3\Contracts\BasicWePay; use WePayV3\Contracts\BasicWePay;
/** /**
* 微信订单接口 * 订单支付接口
* Class Order * Class Order
* @package WePayV3 * @package WePayV3
*/ */
@ -32,14 +32,14 @@ class Order extends BasicWePay
const WXPAY_NATIVE = 'native'; const WXPAY_NATIVE = 'native';
/** /**
* 创建订单 * 创建支付订单
* @param string $type * @param string $type 支付类型
* @param string $options * @param string $json 支付参数
* @return array * @return array
* @throws InvalidResponseException * @throws InvalidResponseException
* @throws LocalCacheException * @throws LocalCacheException
*/ */
public function create($type, $options) public function create($type, $json)
{ {
$types = [ $types = [
'h5' => '/v3/pay/transactions/h5', 'h5' => '/v3/pay/transactions/h5',
@ -50,13 +50,13 @@ class Order extends BasicWePay
if (empty($types[$type])) { if (empty($types[$type])) {
throw new InvalidArgumentException("Payment {$type} not definded."); throw new InvalidArgumentException("Payment {$type} not definded.");
} else { } else {
return $this->doRequest('POST', $types[$type], $options, true); return $this->doRequest('POST', $types[$type], $json, true);
} }
} }
/** /**
* 订单查询 * 支付订单查询
* @param string $orderNo * @param string $orderNo 订单单号
* @return array * @return array
* @throws InvalidResponseException * @throws InvalidResponseException
* @throws LocalCacheException * @throws LocalCacheException

View File

@ -26,20 +26,20 @@ use WePayV3\Contracts\BasicWePay;
class Refund extends BasicWePay class Refund extends BasicWePay
{ {
/** /**
* 创建支付订单 * 创建退款订单
* @param string $data * @param string $json 退款参数
* @return array * @return array
* @throws InvalidResponseException * @throws InvalidResponseException
* @throws LocalCacheException * @throws LocalCacheException
*/ */
public function create($data) public function create($json)
{ {
return $this->doRequest('POST', '/v3/ecommerce/refunds/apply', $data, true); return $this->doRequest('POST', '/v3/ecommerce/refunds/apply', $json, true);
} }
/** /**
* 退款信息查询 * 退款订单查询
* @param string $refundNo * @param string $refundNo 退款单号
* @return array * @return array
* @throws InvalidResponseException * @throws InvalidResponseException
* @throws LocalCacheException * @throws LocalCacheException