Comments (6)
今天程序阻塞, 将TABLE_PAGE_ACTIVITY: "com.alibaba.lightapp.runtime.activity.CommonWebViewActivity",改为com.alibaba.lightapp.runtime.activity.CommonWebViewActivitySwipe后正常。
并在主服务加入了超时处理。SystemUtil.unlock(config.lock_password , {
success: function() {
threads.start(function() {
serviceMain();
});
sleep(2 * 60 * 1000);
threads.shutDownAll();
console.warn("超时");
fail();
exit();
},配合tasker可以实现打卡失败后设定闹钟来打卡😂
from dingtakll-auto-checkin.
我的钉钉版本是6.5.20,在他的[智能填表]页面,activity确实是com.alibaba.lightapp.runtime.activity.CommonWebViewActivity,可能导致阻塞的问题不是这个?你可以用MT管理器或其他工具的展示Activity功能看一下智能填表页面是否为"com.alibaba.lightapp.runtime.activity.CommonWebViewActivity"。
另外在主服务这样加入超时是一个解决办法,但不是很好,应该在每个耗时操作,和可能失败的操作加入定时,以判断返回任务是否执行成功,其实在v2.2.4版本加入行程卡截图上传之后我做了这个工作(但是只应用到了行程卡那个任务).AutojsUtil.untilTask.do({}).ifnot()...,应用到所有流程是个不小的改动,所以现在还没做😂现在有其他的任务,欢迎pr.
from dingtakll-auto-checkin.
有新的问题都可以新建一个issue.不然我可能会看不见,依旧谢谢你的使用和反馈🥰
from dingtakll-auto-checkin.
之前确实是com.alibaba.lightapp.runtime.activity.CommonWebViewActivity,就是今天突然阻塞了,也不知道为啥,我用MT看了下变成com.alibaba.lightapp.runtime.activity.CommonWebViewActivitySwipe了。钉钉也是最新版本6.5.20
from dingtakll-auto-checkin.
神奇,我刚刚又去测了一次,他真变成Swipe了,我回复之前测是没有。不知道这个会不会经常变动,按理说不应该变动的,看来自定义配置项又要加一个了
from dingtakll-auto-checkin.
先用着吧,等再不行了再换成"智能填表"之类的
from dingtakll-auto-checkin.
Related Issues (4)
- 定时任务在成功启动时,自动添加下一天的任务,config配置未更新导致重复创建两个定时任务
- 报错 HOT 9
- 查找步骤怎么填写 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dingtakll-auto-checkin.