V2版微信支付,撤销订单接口响应解析错误
FourLeafTec opened this issue · 4 comments
FourLeafTec commented
调用撤销订单接口paymentService.Reverse.ByOutTradeNumber
日志如下:
> POST /secapi/pay/reverse HTTP/1.1
> Authorization: WECHATPAY2-SHA256-RSA2048 mchid="{mchid}",nonce_str="l9Nz92Sz5szjNLc2dbRwZFFnEwLPbuWC",timestamp="1677117417",serial_no="{serial_no}",signature="{signature}"
> Wechatpay-Serial: {wechatpay-serial}
> Accept: */*
> Content-Type: application/json
>
{
"appid": "{my-appid}",
"mchid": "{mchid}",
"out_trade_no": "{out_trade_no}"
}
< HTTP/1.1 200 OK
< Server: nginx
< Date: Thu, 23 Feb 2023 01:56:58 GMT
< Content-Type: text/plain
< Content-Length: 106
< Connection: keep-alive
< Keep-Alive: timeout=8
< Request-Id: 08EA8FDB9F06106018E5BE8C58208FF60228DDF202-47001
http request error:readObjectStart: expect { or n, but found <, error found in #1 byte of ...|<xml><retur|..., bigger context ...|<xml><return_code><![CDATA[FAIL]]></return_code><re|...
从debug打印的响应片段来看,请求本身也有问题
Matrix-X commented
ok,我看看
Matrix-X commented
Matrix-X commented
谢谢你的问题
如果问题解决,请关闭此issue
欢迎你的Star,欢迎进入企业微信群沟通
FourLeafTec commented
请问有v2.0.41的发布解决这个问题么?