将通过wx.chooseimage得到的图片链接传参到珊瑚图片内容安全去识别,结果返回是{参数值错误}???
返回的参数为:
相关复现代码:
wx.chooseImage({
count: 1,
sizeType: ['original'],
sourceType: ['camera'],
success: res => {
wx.serviceMarket.invokeService({
service: 'wxee446d7507c68b11',
api: 'imgSecCheck',
data: {
"Action": "ImageModeration",
"Scenes": ["PORN", "POLITICS", "TERRORISM", "TEXT"],
"ImageUrl": res.tempFilePaths[0],
"ImageBase64": "",
"Config": "",
"Extra": ""
},
}).then(res => {
console.log(res)
if (res.data.Response.Suggestion!="PASS"){
wx.showModal({
title: '警告',
content: '图片内容不健康,创建失败!'
})
}
})
}
})
不支持。