Skip to content

Commit

Permalink
【TB】修复进入活动页失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zjchen committed Nov 1, 2022
1 parent fd75ad7 commit 50d7f44
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

# 更新

2022年11月1日

1.【TB】修复进入活动页失败的问题

2022年10月26日

1.【JD】优化日志打印,减少卡在一个界面的概率
Expand Down
10 changes: 7 additions & 3 deletions auto_20221111/tb/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
* TB221111
*
* Author: czj
* Versions: 1.0.0
* Versions: 1.0.1
* Github: https://github.com/czj2369/jd_tb_auto
*/
// 任务序号
var TASK_ID = 0;
const appPackageName = "com.taobao.taobao";
// 忽略任务
const IGNORE_TASK_LIST = ['邀请成功最高得', '支付宝', '淘宝乐园', '芭芭'];
const IGNORE_TASK_LIST = ['邀请成功最高得', '支付宝', '淘宝乐园', '农场', '消消乐'];
const BACK_LIST = ['任务完成', '任务已经全部完成啦', '下单可获得额外喵果'];
// 判断停留时间
var JUDGE_TIME = 0;
Expand Down Expand Up @@ -86,7 +86,11 @@ function enterActivity() {
// 计时器重置
JUDGE_TIME = 0;
}

if (desc("10亿红包").exists()) {
desc("10亿红包").findOne().click();
// 计时器重置
JUDGE_TIME = 0;
}
if (textContains("天猫双十一 喵喵爱糖果,瓜分十亿红包").exists()) {
console.log("点击做任务")
text("去赚能量").findOne().click();
Expand Down
2 changes: 1 addition & 1 deletion auto_20221111/tb/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"build"
],
"packageName": "com.anjian.tb221111",
"versionName": "1.0.0",
"versionName": "1.0.1",
"versionCode": 1
}

0 comments on commit 50d7f44

Please sign in to comment.