程方

Results 6 comments of 程方

layabuilder.max.js 的`15484`行`FileTools.rename方法` 中判断`isPathSame`逻辑有问题 ```js FileTools.isPathSame=function(a,b){ if(a.toLocaleLowerCase()==b.toLocaleLowerCase())return true; return false; } ``` 没有将`\`和`/`视为相同路径 最好是改成 ```js FileTools.isPathSame=function(a,b){ const path = require("path"); var a=path.normalize(a); var b=path.normalize(b); if(a.toLocaleLowerCase()==b.toLocaleLowerCase())return true; return false; } ``` 而且路径做...

按你的描述,我感觉是你引用关系链执行先后的问题,也就是SoundManager里面那个init方法 https://github.com/layabox/LayaAir/blob/master/src/layaAir/laya/media/SoundManager.ts#L73 ,如果先执行,则soundClass会初始化,否则是`undefined` Laya的那个init方法执行,会执行SoundManager的初始化, https://github.com/layabox/LayaAir/blob/master/src/layaAir/Laya.ts#L189 如果你在那之前调用,就会报错。 你所谓不是必现,应该就是某种方式会导致,你的播放代码,在SoundManager.__init__之前执行了。

@septrd https://github.com/eos3tion/TypeScript-plus/tree/v3.7.2plus

@sylarlin @robinch-top 可以直接替换白鹭啊,我再白鹭发了另外一个合并请求 https://github.com/egret-labs/egret-core/pull/302 我自己的白鹭项目用的很正常

egret用的ts是2.7的,只支持早期ts语法 我之前PR了,基于dom chen的tsplus升级到ts3.7的,一直没被采纳 #302 你可以自行更新一下