mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-15 13:50:37 +08:00
Fix(get_logRes): 修复ui错误导致的石油金币读取异常
This commit is contained in:
parent
5710a0a2b9
commit
3cdbc7d95b
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user