微信小程序进行支付下单提示Http头缺少Accept或User-Agent?
我用node.js 进行微信小程序下单,源码是 await this.node_req({ url: "https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi", method:"POST", header:{ 'Content-Type': 'application/json', 'Accept': 'application/json', "Authorization": 'authHeader', 'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36', }, body:JSON.stringify(set.data.payment) }) 返回的是 {"code":"INVALID_REQUEST","message":"Http头缺少Accept或User-Agent"} 这是啥问题?要怎么处理啊?