Skip to content

Commit

Permalink
1111-M
Browse files Browse the repository at this point in the history
  • Loading branch information
MonsterNone authored Oct 27, 2023
1 parent a4b10ce commit fba3048
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
3 changes: 2 additions & 1 deletion jd_hb.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const VERSION = '20231111-K'
const VERSION = '20231111-M'

if (!auto.service) {
toast('无障碍服务未启动!退出!')
Expand Down Expand Up @@ -282,6 +282,7 @@ try {
// reopenTaskList()
}
console.log('任务已经全部完成,退出')
alert('记得手动完成分享任务并领取打卡红包!')
} catch (err) {
device.cancelKeepingAwake()
if (err.toString() != 'JavaException: com.stardust.autojs.runtime.exception.ScriptInterruptedException: null') {
Expand Down
17 changes: 9 additions & 8 deletions start.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const VERSION = '20231111-K'
const VERSION = '20231111-M'

if (!auto.service) {
toast('无障碍服务未启动!退出!')
Expand Down Expand Up @@ -79,7 +79,7 @@ function registerKey() {
console.log('喵币任务脚本停止了')
console.log('请手动切换回主页面')
if (startCoin) {
console.log('本次任务开始时有', startCoin, '喵币')
console.log('本次任务开始时有', startCoin, '万喵币')
}
device.cancelKeepingAwake()
exit()
Expand Down Expand Up @@ -153,7 +153,8 @@ try {
sleep(8000)
return findTask()
}
if (!(taskName.match(/|||||||||||88||||||||||||穿||||||||||||||||/) || !content.match(/||/))) {
console.log(taskName, content)
if (!(taskName.match(/|||||||||88||||||||||||穿||||||||||||||||/) || !content.match(/||/))) {
return [taskName, jumpButtons[i], content]
}
}
Expand Down Expand Up @@ -218,7 +219,7 @@ try {
countdown = 1
break
}
if (textMatches(/.*.*/).exists()) {
if (textMatches(/.*.*|.*.*/).exists()) {
alert('触发淘宝验证', '请手动验证后返回淘宝首页,重新执行任务')
console.log('异常退出。')
quit()
Expand Down Expand Up @@ -383,7 +384,7 @@ try {
console.log('没找到合适的任务。也许任务已经全部做完了。退出。互动任务不会自动完成。')
console.log('请手动切换回主页面')
if (startCoin && endCoin) {
console.log('本次任务共获得', (endCoin - startCoin), '喵币')
console.log('本次任务共获得', (endCoin - startCoin), '万喵币')
}
alert('任务已完成', '别忘了在脚本主页领取双十一红包!互动任务需要手动完成。')
quit()
Expand All @@ -399,10 +400,10 @@ try {
sleep(2000)
}
backToList()
} else if (jumpButton[0].match(/.*.*|.*.*|.*.*|.*.*/)) {
console.log('进行' + jumpButton[0] + '任务,10秒后返回')
} else if (jumpButton[0].match(/|/)) {
console.log('进行' + jumpButton[0] + '任务,20秒后返回')
jumpButton[1].click()
sleep(10000)
sleep(20000)
backToList()
} else if (jumpButton[0].match(//)) {
console.log('进行' + jumpButton[0] + '任务')
Expand Down
2 changes: 1 addition & 1 deletion tb_huichang.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const VERSION = '20231111-K'
const VERSION = '20231111-M'

if (!auto.service) {
toast('无障碍服务未启动!退出!')
Expand Down
2 changes: 1 addition & 1 deletion tb_luck.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const VERSION = '20231111-K'
const VERSION = '20231111-M'

if (!auto.service) {
toast('无障碍服务未启动!退出!')
Expand Down

0 comments on commit fba3048

Please sign in to comment.