小程序内容安全API
检查一段文本是否含有违法违规内容。
POST https://api.weixin.qq.com/wxa/msg_sec_check?access_token=ACCESS_TOKEN
//微信内容安全接口
public function wxmsgSecCheck($text)
{
$accessToken = '小程序token';
$url = "https://api.weixin.qq.com/wxa/msg_sec_check?access_token=".$accessToken;
$data = json_encode(['content'=>$text]);
$respon = $this->curlRequest($url,'post',$data);
$respon = json_decode($respon,true);
if($respon[