mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-06 03:58:03 +08:00
V3退款链接和接口文档不一致
post请求如果响应失败的话没有下面的timestamp字段,直接返回微信的错误信息方便处理
This commit is contained in:
parent
aede81dce3
commit
21b6758c04
@ -136,6 +136,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) {
|
||||||
|
@ -36,7 +36,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