微信检测违规图片、文本
检测违规图片、文本
info 使用此 API 前需要配置 AppSecret,请前往 设置 - 小程序 中配置 AppSecret。
检测违规图片
BaaS.wxCensorImage(fileID)
参数说明
参数名
类型
说明
fileID
string
文件列表中的文件ID
示例代码
exports.main = async function (event) {
return await BaaS.wxCensorImage('5b71568674f0e509bb5ecc30')
}
检测违规文本
BaaS.wxCensorText(text)
exports.main = async function (event) {
return await BaaS.wxCensorText('123')
}
Last updated
Was this helpful?