文本安全内容检测接口的接口,不管传多么违规的内容,都可以通过?
不管传什么样的内容接口都可以通过,都返回的是,{"errcode":0,"errmsg":"ok"},具体代码入下,access_token肯定没错,因为请求结果返回的是{"errcode":0,"errmsg":"ok"} public function checkContent($content){
$url='https://api.weixin.qq.com/wxa/msg_sec_check?access_token='.$this->getAccessToken();
$client=new Client();
$response=$client->request("POST",$url,[
"json"=>[
"content"=>$content
]
]);
$contents = $response->getBody()->getContents();
\Yii::error($contents,"error");
$result=json_decode($contents,true);
if($result['errcode']==87014){
return false;
}
return true;
}