Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

魅族16X自动解锁后打开支付宝失败 #80

Closed
MagicYuze opened this issue Aug 12, 2019 · 4 comments
Closed

魅族16X自动解锁后打开支付宝失败 #80

MagicYuze opened this issue Aug 12, 2019 · 4 comments
Labels
Bug 🐞 故障 Confirmed bugs or reports that are very likely to be bugs Reinforcement ✨ 强化 Issues for higher quality of being compatible Settled 🌴 完成 Happy ending for both human beings and issues themselves

Comments

@MagicYuze
Copy link

MagicYuze commented Aug 12, 2019

魅族16X脚本成功解锁后没反应,日志提示打开支付宝失败。已解锁状态下脚本没问题,用脚本解锁就不行。楼主有空帮忙看下哈
S90812-17031348

S90812-17171026

日志就停在红线前不动了
如果我手动打开支付宝的话就还能正常运行。

如果我锁屏前打开支付宝(保持在前台界面),解锁后可以直接运行脚本。如果支付宝在后台运行的话,也是不行的。

感觉可能是模块出了点问题,因为我引用你的解锁模块解锁以后,直接launchApp("支付宝");也是打不开的。

@SuperMonster003
Copy link
Owner

感谢反馈
有不少人都反馈过这个问题 不过都是最近反馈的 而且其他项目也有人反馈类似问题
感觉是Alipay增强了安全限制 其他APP使用Schema方式唤起Alipay受限制 (仅仅是猜测)

可以尝试以下方法

引用解锁模块解锁以后
执行 app.launchPackage("org.autojs.autojs");
app.launchApp("Auto.js");
然后再 launchApp("支付宝");
看能否按预期实现 "先唤起Auto.js然后间接唤起Alipay"

如果多次测试均可成功
我会在下一版加入类似代码实现间接启动Alipay
🙂

@MagicYuze
Copy link
Author

MagicYuze commented Aug 14, 2019

这样就可以啦,谢谢大佬。😘

还有个问题就是,想要写个脚本调用你的时间模块。就是想运行完一次脚本之后,设置新的auto.js定时任务,之前没咋接触过auto.js,,看了下文档,好像没有提到怎样设置这种定时任务😞

或者说如果不调用你的模块,有没有简单一点的代码可以实现这个功能呢?

@SuperMonster003
Copy link
Owner

欢迎体验测试版 看打开支付宝失败的问题是否复现
#82 (comment)
另外定时任务的使用示例可参阅Ant_Forest_Launcher.js源码 或自行研究模块中包含的方法
感谢支持

@SuperMonster003
Copy link
Owner

v1.8.4 已通过"启动跳板"功能解决此类问题 欢迎体验并反馈
如问题复现或出现新的问题 请重新反馈 此 Issue 暂时关闭 感谢支持

@SuperMonster003 SuperMonster003 added Reinforcement ✨ 强化 Issues for higher quality of being compatible Bug 🐞 故障 Confirmed bugs or reports that are very likely to be bugs Settled 🌴 完成 Happy ending for both human beings and issues themselves labels Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐞 故障 Confirmed bugs or reports that are very likely to be bugs Reinforcement ✨ 强化 Issues for higher quality of being compatible Settled 🌴 完成 Happy ending for both human beings and issues themselves
Projects
None yet
Development

No branches or pull requests

2 participants