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

素材管理添加永久素材返回JSON/XML内容错误 #169

Closed
yedong0839 opened this issue Dec 5, 2015 · 5 comments
Closed

素材管理添加永久素材返回JSON/XML内容错误 #169

yedong0839 opened this issue Dec 5, 2015 · 5 comments

Comments

@yedong0839
Copy link

当使用$media->forever()->image($imagePath);就会返回 解析JSON/XML内容错误;
但使用$media->image($imagePath);一切正常;
thumb 亦是如此;
请问这是为何?

@overtrue
Copy link
Collaborator

overtrue commented Dec 5, 2015

@yedong0839 看看返回的内容是啥,在Http.php内记日志看看

@yedong0839
Copy link
Author

返回信息:Array
(
[errcode] => 47001
[errmsg] => data format error hint: [YoF8vA0104e297]
)

@yedong0839
Copy link
Author

已解决,原因如下:
素材路径中不能有 ..
如,此路径就会返回47001错误:$imagePath = _DIR_.'/../img.png';

@overtrue
Copy link
Collaborator

overtrue commented Dec 7, 2015

@yedong0839 DIR 是啥?你自己定义的常量么?

@yedong0839
Copy link
Author

显示错了,本来是 _DIR_;

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