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

临时素材接口无法使用 #319

Closed
zxz054321 opened this issue Mar 5, 2016 · 1 comment
Closed

临时素材接口无法使用 #319

zxz054321 opened this issue Mar 5, 2016 · 1 comment

Comments

@zxz054321
Copy link

我用的环境

PHP 版本:5.6
overtrue/wechat 版本:3.0
Laravel 5.1

问题及现象

按照文档:

<?php
use EasyWeChat\Foundation\Application;

$app = new Application($options);

// 临时素材
$temporary = $app->material_temporary;
$temporary->uploadImage($pathToFile);

永远提示:

EasyWeChat\Core\Exceptions\HttpException: invalid media type hint: [_GDbeA0855ure1]

E:\xampp\htdocs\LuckyQuestion\vendor\overtrue\wechat\src\Core\AbstractAPI.php:235
E:\xampp\htdocs\LuckyQuestion\vendor\overtrue\wechat\src\Core\AbstractAPI.php:135
E:\xampp\htdocs\LuckyQuestion\vendor\overtrue\wechat\src\Material\Temporary.php:106
E:\xampp\htdocs\LuckyQuestion\vendor\overtrue\wechat\src\Material\Temporary.php:162

PS:改成永久素材接口上传一切正常!

@overtrue
Copy link
Collaborator

overtrue commented Mar 5, 2016

@zxz054321 6c78b40

@overtrue overtrue closed this as completed Mar 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants