app.launchApp()函数有时候运行不了???
@pjack while 那里可以写成这样:
while (true) {
let launchResult = app.launchApp("咸鱼之王")
// let launchResult = app.launchPackage("com.hortor.games.xyzw")
let funResult = buyButton()
log(`启动结果:${launchResult}, 函数执行结果:${funResult}`)
if (launchResult && funResult) {
break;
}
sleep(500)
}
看看 log 结果是什么