We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【上传素材文件】 <- 此文档的示例
<?php use Overtrue\Wechat\Media; // $appId = xxxx; // $appSecret = xxxx; // ... $media = new Media($appId, $appSecret); $imageId = $media->image(__DIR__ . '/demo.jpg'); // 上传并返回媒体ID $message = Message::make('image')->media($imageId);
该部分的:
$imageId = $media->image(__DIR__ . '/demo.jpg'); // 上传并返回媒体ID // ^-------这里返回的并不是 image id,而是包含了 ['type', 'media_id', 'created_at'] 的 Array $message = Message::make('image')->media($imageId); // 照着示例写的话,这里直接进来了个 Array----^ 貌似会造成无法处理
以上.
The text was updated successfully, but these errors were encountered:
@lialosiu OK,我更新一下
Sorry, something went wrong.
https://github.com/overtrue/wechat/wiki/%E6%B6%88%E6%81%AF%E7%9A%84%E4%BD%BF%E7%94%A8
No branches or pull requests
【上传素材文件】 <- 此文档的示例
该部分的:
以上.
The text was updated successfully, but these errors were encountered: