feat: add offer reward claim workflow

This commit is contained in:
admin committed 2026-10-04 17:58:53 +08:00
1 parent 870ca82e8a
commit b6bd78dc66
25 files changed
+1028 -5

No files matched your search

+128
View File
@@ -0,0 +1,128 @@
{
"name": "特惠战令一键领取",
"states": {
"home": [
{
"template": "home.png",
"search": [
150,
730,
410,
865
]
}
],
"available": [
{
"template": "offer_page.png",
"search": [
20,
20,
320,
125
]
},
{
"template": "offer_claim.png",
"search": [
20,
795,
195,
885
]
}
],
"claimed": [
{
"template": "offer_page.png",
"search": [
20,
20,
320,
125
]
},
{
"template": "offer_claimed.png",
"search": [
10,
790,
190,
892
]
},
{
"template": "offer_back.png",
"search": [
15,
905,
125,
985
]
}
],
"reward": [
{
"template": "offer_reward.png",
"search": [
130,
235,
440,
355
],
"threshold": 0.8
},
{
"template": "offer_dismiss.png",
"search": [
160,
625,
410,
705
]
}
],
"menu": [
{
"template": "offer_monthcard.png",
"search": [
150,
0,
430,
110
]
},
{
"template": "offer_back.png",
"search": [
15,
905,
125,
985
]
}
]
},
"clicks": {
"open": [
0.08,
0.233
],
"claim": [
0.178,
0.839
],
"dismiss": [
0.5,
0.664
],
"back": [
0.12,
0.94
],
"battlepass": [
0.49,
0.94
]
}
}
+28
View File
@@ -0,0 +1,28 @@
{
"name": "小金猪挂机奖励领取",
"steps": [
{
"name": "首页 → 打开小金猪",
"expect": [{"template": "home.png", "search": [150, 730, 410, 865]}],
"click": [0.135, 0.607]
},
{
"name": "挂机奖励 → 领取(不执行快速扫荡)",
"expect": [
{"template": "idle_title.png", "search": [170, 285, 390, 365]},
{"template": "claim.png", "search": [300, 680, 535, 805]}
],
"click": [0.747, 0.738],
"wait_absent": [{"template": "claim.png", "search": [300, 680, 535, 805]}],
"settle": 1.0
},
{
"name": "关闭奖励弹框并返回首页",
"expect": [],
"click": [0.5, 0.875],
"settle": 0.7
}
],
"finish": [{"template": "home.png", "search": [150, 730, 410, 865]}],
"result": "已点击领取,领取按钮状态已变化,并确认返回首页。奖励到账数量尚未验证,请首次实机运行时核对。"
}