活动商店改进 #136

Open
opened 2025-07-12 20:20:42 +08:00 by zhao · 0 comments
Owner

现在的代码不能正确处理对“最多”的点击,需要加入对代币数量的识别:

if pos := self.find("sign_in/shop/max"):
    if self.find("sign_in/shop/0"):
        return True
    self.tap(pos, update=False)
    self.sleep(0.5, update=False)
self.ctap("sign_in/shop/buy", id=self.product)

“无限代币购买”的选项也需要识别代币数量,另外还需要识别“剩余无限”。

现在的代码不能正确处理对“最多”的点击,需要加入对代币数量的识别: ```python if pos := self.find("sign_in/shop/max"): if self.find("sign_in/shop/0"): return True self.tap(pos, update=False) self.sleep(0.5, update=False) self.ctap("sign_in/shop/buy", id=self.product) ``` “无限代币购买”的选项也需要识别代币数量,另外还需要识别“剩余无限”。
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: mower-ng/mower-ng#136
No description provided.