因为我的项目是php,所以最终的解决方案是,修改了curl代码 public static function curlPost(string $url, array $data) { $postData = json_encode($data,JSON_UNESCAPED_UNICODE); $headers = array( 'Content-Type: application/json;charset=utf-8', 'Content-Length: ' . strlen($postData) ); $init = curl_init(); curl_setopt($init, CURLOPT_URL, $url); curl_setopt($init, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($init, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($init, CURLOPT_POST, true); curl_setopt($init, CURLOPT_RETURNTRANSFER, true); curl_setopt($init, CURLOPT_POSTFIELDS, $postData); curl_setopt($init, CURLOPT_HTTPHEADER, $headers); $output = curl_exec($init); if (curl_errno($init)) { $output = curl_error($init); } curl_close($init); return json_decode($output, true); }
文本内容安全识别 识别不到[图片],接口提交的内容{"content":"色情","version":2,"scene":3,"openid":"oF9gC5sVnaopI09UMBZS3NAqFDFg"},提交之后返回的内容,{"errcode":0,"errmsg":"ok","detail":[{"strategy":"keyword","errcode":0},{"strategy":"content_model","errcode":0,"suggest":"pass","label":100,"prob":90}],"trace_id":"66615018-08a94388-55c5cc37","result":{"suggest":"pass","label":100}}
06-11我也出现了同样的问题,博主解决了吗?这是我提交的内容:{"content":"彼时若互裸朋友,一个也不视频应声","version":2,"scene":2,"openid":"oF9gC5sVnaopI09UMBZS3NAqFDFg"},下面这是提交微信后台接口返回的数据 {"errcode":0,"errmsg":"ok","detail":[{"strategy":"content_model","errcode":0,"suggest":"pass","label":100,"prob":90},{"strategy":"keyword","errcode":0}],"trace_id":"6661261d-5fa4e622-69802d1a","result":{"suggest":"pass","label":100}}
微信小程序文本内容安全识别接口,无法识别发布时审核员输入的内容,敏感词是需要自己添加吗?1.我今天发布的小程序,审核员测试时输入内容"彼时若互裸朋友,一个也不视频应声",内容安全识别接口返回100正常,所有审核不通过 2.百度查询后,说可以自己添加,我将互裸添加到小程序后台安全中心里,再次测试内容安全识别接口,返回不是100了 3.您好,我的问题是,内容安全识别接口无法识别"彼时若互裸朋友,一个也不视频应声"这句话吗?怎么返回正常?既然无法识别审核人员怎么用这个测试哦?为什么我自己添加后就返回值不是100了? [图片][图片]
06-06