[更新]统一名称规则

This commit is contained in:
Anyon 2018-02-02 20:31:16 +08:00
parent 2c6df0afd2
commit dc73718c6b
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ try {
'total_fee' => '1', 'total_fee' => '1',
'refund_fee' => '1', 'refund_fee' => '1',
]; ];
$result = $wechat->refund($options); $result = $wechat->createRefund($options);
var_export($result); var_export($result);

View File

@ -108,7 +108,7 @@ class Pay
* @return array * @return array
* @throws InvalidResponseException * @throws InvalidResponseException
*/ */
public function refund(array $options) public function createRefund(array $options)
{ {
$url = 'https://api.mch.weixin.qq.com/secapi/pay/refund'; $url = 'https://api.mch.weixin.qq.com/secapi/pay/refund';
return $this->callPostApi($url, $options, true); return $this->callPostApi($url, $options, true);