收藏
回答

创建临时素材返回为空, ,该怎么解决?

$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的问题在哪里大家帮我看下谢谢

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签