<xml>
<appid>wx4ae4d****49aa</appid>
<mach_id>13****601</mach_id>
<nonce_str>3dLofUt*****K1ZgrUJ9</nonce_str>
<body>LO-衣服</body>
<out_trade_no>12312***03</out_trade_no>
<total_fee>1</total_fee>
<spbill_create_ip>192.168.1.1</spbill_create_ip>
<notify_url>https://m.ilo*ook.cn/wechat/pay/callback</notify_url>
<trade_type>JSAPI</trade_type>
<openid>orG3q****f9yDBvE</openid>
<sign>BFF425****CDDFB4CD196B</sign>
</xml>
httprequest({
url: 'https://api.mch.weixin.qq.com/pay/unifiedorder',
method: 'post',
headers: {
'Content-Type':'application/xml;charset=utf-8'
},
body: modal2xml
}, (err, res1, body) => {
console.log('错误', err);
console.log('状态码', res1.statusCode);
console.log('响应体', body);
// res.send(body);
});
我已经检验过sign了,是正确的
如上,我把那坨xml发给微信服务器,状态码200,err为空,为什么body为空呢!!连错误都没!
急急急啊