检测返回的label是100,场景枚举值全试了。。。。
trace_id: 6353e9fe-338f494b-7fb23cca
返回内容
{
"message": {
"errno": -1,
"message": "\u4e0a\u4f20\u5931\u8d25, \u8bf7\u9009\u62e9\u8981\u4e0a\u4f20\u7684\u6587\u4ef6\uff01"
},
"redirect": "",
"type": "ajax"
} {
"time": "2022-10-22 21:02:55.3357",
"ip": "2222222",
"data": {
"content": "填写违法的内容",
"ret": {
"errcode": 0,
"errmsg": "ok",
"detail": [{
"strategy": "keyword",
"errcode": 0
}, {
"strategy": "content_model",
"errcode": 0,
"suggest": "pass",
"label": 100,
"prob": 90
}],
"trace_id": "6353e9fe-338f494b-7fb23cca",
"result": {
"suggest": "pass",
"label": 100
}
}
}
}
}
你好,核实是文字编码错误原因,实际传入的content为:u5***\u7***这样的,导致接口无法识别,请使用utf-8编码