• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 6 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0022 秒)

1. 微信小游戏,子域问题。 [ 100%]

微信小游戏,子域问题。 __static(MiniFileMgr, ['fs',function(){return this.fs=wx.getFileSystemManager();},'wxdown',function(){return this.wxdown=wx.downloadFile;} ]);   报错说没有这个方法:wx.getFileSystemManager() 附件 : --> 2018-07-25 1 条评论 免费帖 --> 分享 微博...

来源: Laya_社区 发布时间: 20180725

2. 微信小游戏加载资源问题 [ 74%]

... strict'; function DEB(str){ console.debug("[res]"+str); } class MiniFileMgr { static isLocalNativeFile(url) { for (var i = 0, sz = MiniAdpter.nativefiles.length; i < sz; i++) { if (url.indexOf(MiniAdpter.nativefiles[i]) != -1) return true; } return false; } static getFileInfo(fileUrl) ...

来源: Laya_社区 发布时间: 20200103

3. 引擎中的修改意见 [ 69%]

...e if (char1 === "/") { return url; } return (base || basePath) + url; }5、MiniFileMgr中downFile只对200返回码做处理,实际会出现304 500 或者其他的错误码,并不会进入fail流程 public static function downOtherFiles(fileUrl:String, callBack:Handler = null, readyUrl:String = ...

来源: Laya_社区 发布时间: 20180820

4. 导出到微信小游戏资源加载失败回调不执行 [ 67%]

...加载失败时(远程CDN没有该图片)没有调用回调。 查看MiniFileMgr.as发现仅当statusCode为200时才会触发回调,源码如下 public static function downFiles(fileUrl:String, encoding:String = "ascii", callBack:Handler = null, readyUrl:String = "",isSaveFile:Boolean = false...

来源: Laya_社区 发布时间: 20180924

5. 微信小游戏设置网络动态加载无法显示 [ 66%]

...分享 微博 QZONE 微信 183*****291 赞同来自: 又跟了下发现在 MiniFileMgr.wxdown时候fail了 错误信息 downloadFile:fail Error: Hostname/IP doesn't match certificate's altnames: "Host: lg-f6ejft4c-1256468286.wxlagame.com. is not in the cert's altnames: DNS:*.cdn.myqcloud.com, DNS:*....

来源: Laya_社区 发布时间: 20180517

6. 微信小游戏里面开放数据域的资源加载问题 [ 62%]

...ction.get (http://127.0.0.1:63435/game/open/js/code.js:179:66) at Function.MiniFileMgr.readFile (http://127.0.0.1:63435/game/op ... 418:14) at Loader.__proto.load (http://127.0.0.1:63435/game/op ... 115:18) at LoaderManager.__proto._doLoad (http://127.0.0.1:63435/game/op ... 296:10) at LoaderManager...

来源: Laya_社区 发布时间: 20180507