From cf06c207d60a21082c28e83f9df24c605a58e19a Mon Sep 17 00:00:00 2001 From: sui-feng-cb <2518179942@qq.com> Date: Sun, 10 May 2026 05:41:39 +0800 Subject: [PATCH] Fix: buy food may be triggerred more than once --- module/commission/commission.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/module/commission/commission.py b/module/commission/commission.py index d301337e8..cad9ad36e 100644 --- a/module/commission/commission.py +++ b/module/commission/commission.py @@ -508,7 +508,6 @@ class RewardCommission(UI, InfoHandler): logger.hr('Reward receive') reward = False - food = False click_timer = Timer(1) with self.stat.new( 'commission', method=self.config.DropRecord_CommissionRecord @@ -560,14 +559,12 @@ class RewardCommission(UI, InfoHandler): # click_timer.reset() continue # handle oil maxed - # run once to prevent accidental oil consumption if self.config.SERVER in ['cn']: - if not food and self.appear(OIL_MAXED, offset=(20, 20), interval=3): + if self.appear(OIL_MAXED, offset=(20, 20), interval=3): logger.info("Oil maxed, buy food to consume oil") RewardDorm(self.config, self.device).dorm_run( feed=False, collect=False, buy_furniture=False, buy_food=10) self.ui_ensure(page_reward) - food = True continue # Check GET_SHIP at last to handle random white background at page_main for button in [GET_SHIP]: