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

handle statuscode and delete file when loading failed #56

Merged
merged 1 commit into from Dec 26, 2018

Conversation

Projects
None yet
2 participants
@holycanvas
Copy link

holycanvas commented Dec 25, 2018

1.处理下载资源的statuscode
2.在readText里面,即使成功读取到文件,并不能保证文件内容正确,所以同样注册事件。在加载失败时删除该文件。

在nextPipe函数里,除了json的其他资源已经注册了回调事件,在加载失败时会自动删除对应文件,所以不需要再修改。

@pandamicro pandamicro merged commit 4c3a697 into cocos-creator-packages:v2.0-release Dec 26, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment