Pre Merge pull request !9 from yao978318542/master

This commit is contained in:
yao978318542 2023-05-05 13:58:08 +00:00 committed by Gitee
commit a2b3919aae
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 4 additions and 1 deletions

View File

@ -166,6 +166,9 @@ abstract class BasicWePay
]);
if ($verify) {
if(empty($headers)){
return json_decode($content, true);
}
$headers = [];
foreach (explode("\n", $header) as $line) {
if (stripos($line, 'Wechatpay') !== false) {

View File

@ -38,7 +38,7 @@ class Refund extends BasicWePay
*/
public function create($data)
{
return $this->doRequest('POST', '/v3/ecommerce/refunds/apply', json_encode($data, JSON_UNESCAPED_UNICODE), true);
return $this->doRequest('POST', '/v3/refund/domestic/refunds', json_encode($data, JSON_UNESCAPED_UNICODE), true);
}
/**