小程序
小游戏
企业微信
微信支付
扫描小程序码分享
{"errCode":40006,"errMsg":"openapi.security.imgSecCheck:fail invalid media size rid: 69817bfc-44a10161-7db7b610"}
3 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
你好,请自行排查图片尺寸问题,要检测的图片文件,格式支持PNG、JPEG、JPG、GIF,图片尺寸不超过 750px x 1334px
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
本回答由AI生成,可能已过期、失效或不适用于当前情形,请谨慎参考
postman调一下截个图
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
你好,请自行排查图片尺寸问题,要检测的图片文件,格式支持PNG、JPEG、JPG、GIF,图片尺寸不超过 750px x 1334px
postman调一下截个图
filePath: that.data.imgbox[0],
success: buffer => {
wx.cloud.callFunction({
name: 'checkContent',
// name:'checkContent_V2',
data: {
value: wx.cloud.CDN(buffer.data), //小程序端调用云函数时,如需传递大数据(建议 128k 以上时),可用此 CDN 方法标记需要传递的数据,即可以是字符串,也可以是临时文件路径。 Cloud.CDN(opt: string|ArrrayBuffer|Object)
// value: buffer.data
},
success(json) {
if (json.result.errCode == 87014) {
wx.showToast({
title: '图片含有违法违规内容',
icon: 'none'
});
console.log("bad")
that.setData({
imgisok: false
})
} else if (json.result.errCode == -604102) {
console.log("1233")
wx.showToast({
title: '图片含有违法违规内容',
icon: 'none'
});
console.log("bad")
that.setData({
imgisok: false
})
} else {
//图片正常
wx.hideLoading()
wx.showToast({
title: '检查通过',
icon: 'none'
});
console.log("good")
that.setData({
imgisok: true
})
}
},
fail(res) {
console.log(res)
//图片正常
wx.hideLoading()
wx.showToast({
title: '检查失败',
icon: 'none'
});
console.log("bad检查失败")
that.setData({
imgisok: false
})
}
})
}
})
},