From 8466bf1ce510e7915cde46829960ab931080f07f Mon Sep 17 00:00:00 2001 From: Lei PAN Date: Mon, 14 Mar 2022 23:07:46 +0100 Subject: [PATCH] change timout for otp --- commandor.py | 2 +- main.py | 2 +- reset_all_sim_card.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commandor.py b/commandor.py index 8011dd2..21a45af 100644 --- a/commandor.py +++ b/commandor.py @@ -38,7 +38,7 @@ class Commandor: subprocess.call("adb shell settings put global airplane_mode_on 0", shell=True) time.sleep(1) subprocess.call("adb shell am broadcast -a android.intent.action.AIRPLANE_MODE", shell=True) - time.sleep(5) + time.sleep(6) if __name__ == '__main__': diff --git a/main.py b/main.py index 6f4c90f..a423eb7 100644 --- a/main.py +++ b/main.py @@ -19,7 +19,7 @@ from pojo.serial_modem import SerialModem from logs.AppLogging import init_logger from utils.message_receiver import MessageReceiver -OTP_TIMEOUT = 90 +OTP_TIMEOUT = 60 is_finished = False commandor = Commandor() contacts = [] diff --git a/reset_all_sim_card.py b/reset_all_sim_card.py index 72e6e9b..ca9320a 100644 --- a/reset_all_sim_card.py +++ b/reset_all_sim_card.py @@ -10,7 +10,7 @@ from main import card_pool, get_devices_ports def read_all_the_phone_number(): params.oracle_log_sender.send_log(msg="SIM卡自检开始", subject=LOG_SUBJECT_EVENT, type=TYPE_EVENT_RESET_ALL_SIM_CARDS) slot_number = 1 - slot_sum = 30 + slot_sum = 31 # card_pool.switch_to_slot(29) params.firebase_store_manager.clear_all_sim_info() for i in range(slot_number, slot_sum + 1):