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

fix issue that loadRes doesn't callback #96

Merged
merged 2 commits into from Jun 4, 2019

Conversation

@holycanvas
Copy link

@holycanvas holycanvas commented May 28, 2019

修复微信下载远程图片导致后续加载资源没有回调的问题
修改缓存时机,改为上个资源缓存完成后等待一段时间缓存下个资源,避免有些资源过大,缓存太久,占用下次缓存的时间

@pandamicro pandamicro merged commit d218a5a into cocos-creator-packages:v2.1.2 Jun 4, 2019
@PPpro
Copy link

@PPpro PPpro commented Jun 4, 2019

手动关联 issue:https://forum.cocos.com/t/loadresarray/78335

@BoyLei
Copy link

@BoyLei BoyLei commented Jul 30, 2019

请问一下,如果我想在 CreatorV2.09中使用当前的weapp-adapter,需要做些什么修改。目前在直接替换这个文件夹之后,发布时,会在game.js中 require 报错
image
。请问有什么办法可以绕过去

@PPpro
Copy link

@PPpro PPpro commented Jul 30, 2019

@BoyLei
替换完文件夹之后把这行改为

require(window._CCSettings.debug ? 'cocos2d-js' : 'cocos2d-js-min');

@BoyLei
Copy link

@BoyLei BoyLei commented Jul 31, 2019

谢谢您的回复。但是改完之后还是会有编译错误
image

Creator版本 v2.09

@BoyLei
Copy link

@BoyLei BoyLei commented Jul 31, 2019

@umbrellaPP 有空的时候麻烦帮看下

@PPpro
Copy link

@PPpro PPpro commented Jul 31, 2019

@BoyLei 请把引擎仓库也更新到 2.0.9,适配仓库是和引擎版本保持同步的

@BoyLei
Copy link

@BoyLei BoyLei commented Jul 31, 2019

@umbrellaPP 引擎本身就是 2.0.9的,但是 2.09微信声音这一块有bug,所以想采用最新的 weapp-adapter。移过来后发现编译报错

@PPpro
Copy link

@PPpro PPpro commented Jul 31, 2019

@BoyLei 不对,搞错了,这个是 2.1.2 版本上修复的,引擎版本应该也是 2.1.2
建议还是升级到 Cocos Creator 2.1.2,可能编辑器构建流程也需要同步更新

@BoyLei
Copy link

@BoyLei BoyLei commented Jul 31, 2019

@umbrellaPP 是的啊,有没有办法把这个移植过来呢?不太理解为啥适配层需要绑定引擎。。。。

@PPpro
Copy link

@PPpro PPpro commented Jul 31, 2019

@BoyLei 或者你得参考 pr ,到具体的版本里去做针对性的修复,直接全盘替换肯定是会有问题的

@BoyLei
Copy link

@BoyLei BoyLei commented Jul 31, 2019

@umbrellaPP 谢啦!

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