Skip to content
New issue

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

[建议] 深度结合微信多图文与素材管理 #46

Closed
18601673727 opened this issue Jun 23, 2015 · 1 comment
Closed

[建议] 深度结合微信多图文与素材管理 #46

18601673727 opened this issue Jun 23, 2015 · 1 comment
Labels
Milestone

Comments

@18601673727
Copy link

超超我想提个建议,能否在Media类里面加个get方法,
通过media_id从微信获取素材实例,并且它可以当做news_item直接来使用?

例如:

$config = [...];
$media = new Media($config);

$collection = [...];
$items = [];

foreach ($collection as $data) {
    $items[] = $media->get($data->remote_media_id)->toNewsItem();
} 

return Message::send('news')->items($items);
@overtrue
Copy link
Collaborator

OK,加入下一版开发计划,感谢建议!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants