wx.request({
url: `https://api.weixin.qq.com/wxa/get_media_check_async_result?access_token=${accessToken}`,
method: 'POST',
data: {
trace_id: traceId
},
success: (res) => {
console.log('轮询图片检查结果成功:', res);
if (res.data && res.data.errcode === 0) {
if (res.data.result.suggest === 'pass') {
console.log('图片安全检查通过');
innerResolve(true);
} else {
console.error('图片内容未通过安全审核');
innerReject(new Error('图片未通过安全审核'));
}
} else if (res.data && res.data.errcode === 87014) {
console.log('检查中,继续轮询...');
innerResolve(this.pollImageCheckResult(traceId, retryCount + 1));
} else {
console.error('图片检查失败');
innerReject(new Error('图片检查失败'));
}
},
fail: (err) => {
console.error('轮询图片检查结果失败:', err);
innerReject(new Error('轮询图片检查结果失败'));
1使用图片检查接口,静态文件外界是可访问的,并且有微信的下载记录,但是检查结果返回40066报错,腾讯的后台检测接口是否不支持webp格式?
180.153.110.16 - - [02/Mar/2026:11:25:42 +0800] "GET /location_photos/location_photos/oRgse5IJLk7C9z57t2EnSyiupp0g-20260302104924.webp HTTP/1.1" 200 19897 "-" "WechatGame/1.0 (dry; mmsecimgagent)" "-"

你好,接口支持的图片格式包括jpg, jpeg, png, bmp, gif(取首帧),请勿传入不支持的图片格式。