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

获取图片URL为何要判断是否存在? #55

Open
xiaomlove opened this issue Aug 10, 2018 · 7 comments
Open

获取图片URL为何要判断是否存在? #55

xiaomlove opened this issue Aug 10, 2018 · 7 comments

Comments

@xiaomlove
Copy link

在Laravel中使用\Storage::url(),为何要判断文件是否存在?在输出大量图片URL的循环中,严重拖慢了速度!!!而且这里,抛异常也写错了变量名啊。

@xiaomlove
Copy link
Author

只是输出个图片的链接,还发个请求判断是否存在,完全是没有必要的啊。不存在就访问不了罢了。抛异常更是有点多余了。

@Liujingying
Copy link

我也这样觉得,我再同一个网段,判断时间都要好几秒

@RoseEnd
Copy link

RoseEnd commented Sep 11, 2018

这个方法存在问题,作者好像也没维护了

@luguohua0394
Copy link

文件不存在抛出异常,项目不能正常进行。有点难受啊

@xiezhijuan
Copy link

文件不存在抛出异常,项目不能正常进行 这个解决了吗

@ziyeziye
Copy link

@ziyeziye
Copy link

@xiezhijuan @191834552

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

6 participants