tonyjiangwj / alipay-credits Goto Github PK
View Code? Open in Web Editor NEW基于AutoJS的支付宝会员积分签到脚本
License: GNU General Public License v2.0
基于AutoJS的支付宝会员积分签到脚本
License: GNU General Public License v2.0
进入家庭积分后,不能自动点击积分泡泡。把\core\CreditRunner.js132行的“家庭积分” 改为“家庭共享积分” 即可。
每次领完普通积分以后下半部分上移,然后家庭积分判断位置就会错,上次更新之前点进错的位置会退出来再找一遍家庭积分,上次更新之后在错的位置一直找不到家庭积分控件然后等半天就判断领取完毕退出了?
是我哪里没设置对还是除了其他问题呢?
查找控件超时设置的是1s
检测控件是否存在超时设置了8s
获取截图等待时间设置的是0.5s
当支付宝积分过多时, 领取完第一批后, 积分会再次刷新, 此时积分不会被全部领取 , 文件
core\CreditRunner.js
:
this.collectCredits = function (position, regex) {
// 等待稳定
sleep(1000)
// fix : 此处只会取得第一屏积分
let widgets = widgetUtils.widgetGetAll(regex, null, true)
if (widgets) {
logUtils.logInfo(['总数:{}', widgets.target.length])
let targets = widgets.target
let isDesc = widgets.isDesc
let totalCollect = 0
// fix : 获得积分的相关逻辑只针对第一屏积分生效
targets.forEach(val => {
let contentInfo = isDesc ? val.desc() : val.text()
if (this.canCollect(val)) {
automator.clickCenter(val)
logUtils.logInfo([
'value: {}', contentInfo
])
totalCollect += parseInt(regex.exec(contentInfo)[1])
sleep(500)
}
})
logUtils.infoLog(['{} 总共领取:「{}」分', position, totalCollect])
}
}
❀ OPPO R15
❀ Android 9
❀ Auto.js Pro 8.00-5
可以进入家庭积分页面,但无法识别红色的家庭积分球。提示无积分可领取
"未找到目标",不知道是不是我的问题,以前也有遇到过但是过几天自己又好了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.