mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2026-07-04 12:21:08 +08:00
Pre Merge pull request !9 from yao978318542/master
This commit is contained in:
commit
a2b3919aae
@ -166,6 +166,9 @@ abstract class BasicWePay
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
if ($verify) {
|
if ($verify) {
|
||||||
|
if(empty($headers)){
|
||||||
|
return json_decode($content, true);
|
||||||
|
}
|
||||||
$headers = [];
|
$headers = [];
|
||||||
foreach (explode("\n", $header) as $line) {
|
foreach (explode("\n", $header) as $line) {
|
||||||
if (stripos($line, 'Wechatpay') !== false) {
|
if (stripos($line, 'Wechatpay') !== false) {
|
||||||
|
|||||||
@ -38,7 +38,7 @@ class Refund extends BasicWePay
|
|||||||
*/
|
*/
|
||||||
public function create($data)
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user