1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-09 18:39:04 +08:00

Add: temporary server check for opsi voucher task

This commit is contained in:
nEEtdo0d 2022-12-02 16:43:59 -05:00
parent 96cb4aa4e1
commit 6daaea364a

View File

@ -36,6 +36,11 @@ class OSCampaignRun(OSMapOperation):
self.config.opsi_task_delay(ap_limit=True)
def opsi_voucher(self):
if self.config.SERVER in ['cn', 'jp', 'tw']:
logger.info(f'Opsi Voucher is not supported in {self.config.SERVER},'
' please contact server maintainers')
self.config.Scheduler_Enable = False
return
try:
self.load_campaign()
self.campaign.os_voucher()