request({
method: 'POST',
url: `https://api.weixin.qq.com/wxa/msg_sec_check?access_token=${access_token}`,
// body: JSON.stringify({"content": encodeURIComponent(content)}), //只会转义非英文字符 UTF8的字节码 把unicode转utf-8
body: JSON.stringify({"content": `${encodeURI(content)}`}),
headers: {
"content-type": "application/json; charset=UTF-8",
},
}, function (err, response, body) {
console.log(22222222,err, body)
if (err) deferred.reject(err);
deferred.resolve(JSON.parse(body));
})
你好,请参考https://developers.weixin.qq.com/community/develop/doc/0004e88af9ccb04b2219d3b7751c09?_at=1605186671988
官方可以给一个案例吗,php的也行了,只要可以运行正确就行了,拜托了