feat: check feed type and incr feed count

This commit is contained in:
lilong.129
2023-05-02 23:29:06 +08:00
parent 1c40f60f4b
commit 7b9e637d87
5 changed files with 130 additions and 10 deletions

View File

@@ -214,7 +214,8 @@ func (wc *WorldCupLive) EnterLive(bundleID string) error {
// 青少年弹窗处理
if ocrTexts, err := wc.driver.GetScreenTextsByOCR(); err == nil {
if points, err := ocrTexts.FindTexts([]string{"青少年模式", "我知道了"}); err == nil {
_ = wc.driver.TapAbsXY(points[1].X, points[1].Y)
point := points[1].Center()
_ = wc.driver.TapAbsXY(point.X, point.Y)
}
}