- 报错r:mkdirSync:fail not a directory,mkdir?
[图片] 如图:摩托罗拉手机s30 微信版本:8.0.42 日志上传时间:2023.10:31 微信id:xinquanjia88
2023-10-31 - ERR_CACHE_READ_FAILURE
在PC端有玩家出现模型加载不出的情况,体验版复现,产看devtools发现报这个异常,微信版本号3.9.6.33,基础库是2.32.3 [图片]
2023-09-07 - wx.openPrivacyContract 调起失败?
wx.openPrivacyContract 基础库3.0.0 环境:开发者工具 失败提示:private_openUrl:fail invalid protocol
2023-07-14 - 图片加载比较慢
function loadImage(imageURL, scale9grid) { // console.warn("loadImage",imageURL) return new Promise((resolve, reject) => { const image = wx.createImage(); var startLoadTime = Date.now() image.onload = () => { let passTime = Date.now() - startLoadTime if (passTime > 1000) { console.warn("耗时:", passTime, imageURL) } const bitmapdata = new egret.BitmapData(image); const texture = new egret.Texture(); texture._setBitmapData(bitmapdata); if (scale9grid) { texture["scale9Grid"] = scale9grid; } if (systemInfo == null) { systemInfo = wx.getSystemInfoSync(); } if (systemInfo.platform == "ios") { setTimeout(() => { resolve(texture); }, 0); } else { resolve(texture); } } image.onerror = (e) => { // console.error(e); const error = new RES.ResourceManagerError(1001, imageURL); reject(error); } image.src = imageURL; }) } 通过这种方式去远程加载图片,Android手机上集中在1800ms-5000ms,开发者工具上出现在1200ms-1500ms,表现就是模型加载异常缓慢,老板已经催炸天了,求搭救哇
2023-07-04