Closed CoderGFWu closed 2 years ago
没有推算出可用的commands一般是会报这个错误.
每天都是这样, 要怎么才能解决呢
根据你得运行结果上看, 掘金给你分配了一个无法使用上下左右命令绘制的地图导致执行错误. 建议:
2.建议修改方式, 找到 /scripts/seaGold.js
文件.第117行.
由原先:
const gameInfo = await this.gameApi.gameStart();
修改为:
const gameInfo = await this.gameApi.gameStart({ roleId: 1 });
已增加检测0分结算机制, 尝试fetch仓库代码.
感谢老哥, 尝试手动玩了几把之后似乎没有这个问题了
TypeError: Cannot read properties of undefined (reading 'length') at SeaGold.getCommands (/home/runner/work/juejin-helper/juejin-helper/scripts/seaGold.js:180:27) at SeaGold.executeGameCommand (/home/runner/work/juejin-helper/juejin-helper/scripts/seaGold.js:150:29) at runOnceGame (/home/runner/work/juejin-helper/juejin-helper/scripts/seaGold.js:348:29) at async run (/home/runner/work/juejin-helper/juejin-helper/scripts/seaGold.js:373:27) 这是啥子错误