Fix(get_logRes): 修复ui错误导致的石油金币读取异常

This commit is contained in:
W1NDes 2025-09-26 16:04:41 +08:00
parent 5710a0a2b9
commit 3cdbc7d95b

View File

@ -86,6 +86,9 @@ class CampaignStatus(UI):
}
if _coin['Value'] >= 100:
break
if _coin['Value'] == '0':
logger.warning('detect coin zero caused by ui error ')
return LogRes(self.config).Coin['Value']
LogRes(self.config).Coin = _coin
if update:
self.config.update()
@ -159,6 +162,9 @@ class CampaignStatus(UI):
}
if _oil['Value'] >= 100:
break
if _oil['Value'] == '0':
logger.warning('detect oil zero caused by ui error ')
return LogRes(self.config).Oil['Value']
LogRes(self.config).Oil = _oil
if update:
self.config.update()