/*微信图片敏感内容检测*/
public function imgSecCheck(){
$img = "https://jiafengfarming.cn/public/farm/6631d2e553e85.png";
$file['media'] = file_get_contents($img);
$token = $this->getAccessToken();
$url = "https://api.weixin.qq.com/wxa/img_sec_check?access_token=$token";
$info = $this->http_request($url,$file);
return $this->json_return(json_decode($info),true);
}
你好,报错47001,POST BODY数据格式错误,图片接口media的类型应为FormData详见接口文档:https://developers.weixin.qq.com/miniprogram/dev/framework/security.imgSecCheck.html