字节小程序
开发者社区
小程序小游戏
登录
图片验证一直失败

图片验证一直失败

411浏览作者: 用户3824621509585

需求的场景描述
...
检测图片时返回的数据一直不对
下面是调用代码:check:function(){
let tt1 = {
"targets": ["ad""porn","politics","disgusting"],
"tasks": [
{
"image"this.data.imgurl
}
]
};
console.log(tt);
let that = this;
console.log("tttt",that.data.token);
tt.request({
url: "https://developer.toutiao.com/api/v2/tags/image/",
data:tt1,
header: {

'X-Token':that.data.token,
},
method: "POST",
dataType: "JSON"// 指定返回数据的类型为 json
responseType: "text",
success(res) {
console.log("调用成功", res);
tt.showToast({"title":res});



},
fail(res) {
console.log("调用失败", res.errMsg);
},
});
},

相关截图数据:WX20200902-162521@2x.png
上传的相关数据
WX20200902-162613@2x.png返回的json
这个code  400  是参数错误,麻烦看下哪一个参数失败,要怎么写才对
谢谢!

最后一次编辑于 2020年09月02日
加载中