检测违规图片、音频、文本
检测违规图片、音频、文本
检测违规图片
参数名
类型
说明
参数名
类型
说明
{
risky: true
}检测违规文本
参数名
类型
说明
参数名
类型
说明
参数名
类型
说明
异步检测图片、音频
检测请求
参数名
类型
说明
状态码
说明
获取异步检测结果
参数名
类型
说明
状态码
说明
Last updated
Was this helpful?
{
risky: true
}Last updated
Was this helpful?
Was this helpful?
wx.chooseImage({
success: function(res) {
wx.BaaS.wxCensorImage(res.tempFilePaths[0]).then(res => {
console.log(res.data.risky)
}, err => {
// HError 对象
})
}}){
risky: true
} wx.BaaS.wxCensorText("测试文本").then(res => {
console.log(res.data.risky)
}, err => {
// HError 对象
}){
"error_message": "ok",
"error_code": 0,
"risky": null,
"status_code": null,
"id": 1
}wx.BaaS.censorAsync("...").then(res => {
console.log(res.data.risky)
}, err => {
// HError 对象
}){
"error_message": "ok",
"error_code": 0,
"risky": null,
"status_code": null,
"id": 1
}wx.BaaS.getCensorResult("...").then(res => {
console.log(res.data.risky)
}, err => {
// HError 对象
})