Skip to content

Commit 3d13bf6

Browse files
authored
fix(BagelSpam): 修复点击时异常拖动的问题 (#367)
* refactor(BagelSpam): 移除冗余 DirectHit 识别,缩小点击目标为单点坐标 * feat(BagelSpam): 每个点击前增加 TouchMove 节点,先移动再点击
1 parent dcdcea9 commit 3d13bf6

1 file changed

Lines changed: 84 additions & 34 deletions

File tree

assets/resource/base/pipeline/BagelSpam.json

Lines changed: 84 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -243,107 +243,157 @@
243243
"duration": 400
244244
}
245245
},
246+
"next": [
247+
"BagelSpamTouchMoveFirstRow1"
248+
]
249+
},
250+
"BagelSpamTouchMoveFirstRow1": {
251+
"desc": "移动到第一行第1张",
252+
"action": {
253+
"type": "TouchMove",
254+
"param": {
255+
"target": [
256+
193,
257+
178
258+
]
259+
}
260+
},
246261
"next": [
247262
"BagelSpamClickFirstRow1"
248263
]
249264
},
250265
"BagelSpamClickFirstRow1": {
251266
"desc": "点击第一行第1张",
252-
"recognition": {
253-
"type": "DirectHit"
254-
},
255267
"action": {
256268
"type": "Click",
257269
"param": {
258270
"target": [
259-
126,
260-
133,
261-
135,
262-
91
271+
193,
272+
178
263273
]
264274
}
265275
},
266276
"post_wait_freezes": 500,
277+
"next": [
278+
"BagelSpamTouchMoveLastRow1"
279+
]
280+
},
281+
"BagelSpamTouchMoveLastRow1": {
282+
"desc": "移动到到最后一行第1张",
283+
"action": {
284+
"type": "TouchMove",
285+
"param": {
286+
"target": [
287+
170,
288+
514
289+
]
290+
}
291+
},
267292
"next": [
268293
"BagelSpamClickLastRow1"
269294
]
270295
},
271296
"BagelSpamClickLastRow1": {
272297
"desc": "点击最后一行第1张",
273-
"recognition": {
274-
"type": "DirectHit"
275-
},
276298
"action": {
277299
"type": "Click",
278300
"param": {
279301
"target": [
280-
70,
281-
454,
282-
200,
283-
120
302+
170,
303+
514
284304
]
285305
}
286306
},
287307
"post_wait_freezes": 500,
308+
"next": [
309+
"BagelSpamTouchMoveLastRow2"
310+
]
311+
},
312+
"BagelSpamTouchMoveLastRow2": {
313+
"desc": "移动到最后一行第2张",
314+
"action": {
315+
"type": "TouchMove",
316+
"param": {
317+
"target": [
318+
452,
319+
512
320+
]
321+
}
322+
},
288323
"next": [
289324
"BagelSpamClickLastRow2"
290325
]
291326
},
292327
"BagelSpamClickLastRow2": {
293328
"desc": "点击最后一行第2张",
294-
"recognition": {
295-
"type": "DirectHit"
296-
},
297329
"action": {
298330
"type": "Click",
299331
"param": {
300332
"target": [
301-
352,
302333
452,
303-
200,
304-
120
334+
512
305335
]
306336
}
307337
},
308338
"post_delay": 500,
339+
"next": [
340+
"BagelSpamTouchMoveLastRow3"
341+
]
342+
},
343+
"BagelSpamTouchMoveLastRow3": {
344+
"desc": "移动到最后一行第3张",
345+
"action": {
346+
"type": "TouchMove",
347+
"param": {
348+
"target": [
349+
753,
350+
515
351+
]
352+
}
353+
},
309354
"next": [
310355
"BagelSpamClickLastRow3"
311356
]
312357
},
313358
"BagelSpamClickLastRow3": {
314359
"desc": "点击最后一行第3张",
315-
"recognition": {
316-
"type": "DirectHit"
317-
},
318360
"action": {
319361
"type": "Click",
320362
"param": {
321363
"target": [
322-
653,
323-
455,
324-
200,
325-
120
364+
753,
365+
515
326366
]
327367
}
328368
},
329369
"post_delay": 500,
370+
"next": [
371+
"BagelSpamTouchMoveLastRow4"
372+
]
373+
},
374+
"BagelSpamTouchMoveLastRow4": {
375+
"desc": "移动到最后一行第4张",
376+
"action": {
377+
"type": "TouchMove",
378+
"param": {
379+
"target": [
380+
1051,
381+
504
382+
]
383+
}
384+
},
330385
"next": [
331386
"BagelSpamClickLastRow4"
332387
]
333388
},
334389
"BagelSpamClickLastRow4": {
335390
"desc": "点击最后一行第4张",
336-
"recognition": {
337-
"type": "DirectHit"
338-
},
339391
"action": {
340392
"type": "Click",
341393
"param": {
342394
"target": [
343-
951,
344-
444,
345-
200,
346-
120
395+
1051,
396+
504
347397
]
348398
}
349399
},

0 commit comments

Comments
 (0)