$official_account_access_token = "50_KyHoKg3b8puUWUpKl-N1okC2W-SlYGsvOrk4msfGFWI248Us5xrNSvjP-Lqk9CCwcogMC3uWLnNYEwVd-BVrUhmVacZzpQH2URr_eLUMLG4td2ES6wRMQjVM-WH3MptFcKNCgGNvViYNzEjsJHUiABATRE";
$link = "https://zmjy.dotocms.com/ueditor/php/upload/image/20211021/1634781370792328.jpg";
$media = new \CURLFile($link);
$param = [
'media' => $media
];
dump($param);
$re = post("https://api.weixin.qq.com/cgi-bin/media/upload?access_token=$official_account_access_token&type=image", $param);
dump($re);die;
尝试了多种media传参方式都报media data missing 当前这种方式没报错但是返回为空 php7.1的问题在哪里大家帮我看下谢谢
你好,你尝试一下这个:https://developers.weixin.qq.com/community/develop/doc/0006ece2ed888064a92bbaacd54c00