Skip to content

Commit 2260c05

Browse files
authored
fix: 修复随便观误报“点击兑换确认失败” (#2491)
1 parent c4e3657 commit 2260c05

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/zzz_od/application/suibian_temple/operations/suibian_temple_good_goods.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def process_good_goods(self) -> OperationRoundResult:
8383
return self.round_success(status='购买成功')
8484

8585
# 处理弹窗
86-
if self.round_by_ocr(self.last_screenshot, '兑换确认').is_success:
86+
if self.round_by_ocr(self.last_screenshot, '兑换确认', lcs_percent=0.75).is_success:
8787
# 直接使用精确坐标拖拽滑块到最大值
8888
start_point = Point(755, 672)
8989
end_point = Point(1300, 672)
@@ -201,7 +201,7 @@ def back_to_entry(self) -> OperationRoundResult:
201201

202202
def __debug():
203203
ctx = ZContext()
204-
ctx.init_by_config()
204+
ctx.init()
205205
ctx.run_context.start_running()
206206
ctx.run_context.current_instance_idx = ctx.current_instance_idx
207207
ctx.run_context.current_app_id = 'suibian_temple'

0 commit comments

Comments
 (0)