小程序源码:
wx.request({
url: 'https://api.weixin.qq.com/wxa/media_check_async?access_token='+mytoken,
method: 'POST',
data: {
media_url:data.tempFiles[0].tempFilePath,
media_type:2,
version:2,
scene:4,
openid:myopenid
},
header: {
'content-type': 'application/json'
},
success(res0) {
console.log(res0)
}
});
}
});
拿到了这个:errcode: 0;errmsg: "ok";trace_id: "65f6da15-0a713b57-3cf96bd3";
没有用云开发,PHP后端拿到一次访问记录,参数是:{"signature":"785a5a08d470fbcb43e936184bb4cd5a58189bdf","timestamp":"1710676502","nonce":"468026780"}。
要怎么做才能拿到安全识别的结果?
请查看官方文档
音视频内容安全识别
https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/sec-center/sec-check/mediaCheckAsync.html