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));
})