change timout for otp

This commit is contained in:
2022-03-14 23:07:46 +01:00
parent 7e945e1377
commit 8466bf1ce5
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ class Commandor:
subprocess.call("adb shell settings put global airplane_mode_on 0", shell=True) subprocess.call("adb shell settings put global airplane_mode_on 0", shell=True)
time.sleep(1) time.sleep(1)
subprocess.call("adb shell am broadcast -a android.intent.action.AIRPLANE_MODE", shell=True) subprocess.call("adb shell am broadcast -a android.intent.action.AIRPLANE_MODE", shell=True)
time.sleep(5) time.sleep(6)
if __name__ == '__main__': if __name__ == '__main__':
+1 -1
View File
@@ -19,7 +19,7 @@ from pojo.serial_modem import SerialModem
from logs.AppLogging import init_logger from logs.AppLogging import init_logger
from utils.message_receiver import MessageReceiver from utils.message_receiver import MessageReceiver
OTP_TIMEOUT = 90 OTP_TIMEOUT = 60
is_finished = False is_finished = False
commandor = Commandor() commandor = Commandor()
contacts = [] contacts = []
+1 -1
View File
@@ -10,7 +10,7 @@ from main import card_pool, get_devices_ports
def read_all_the_phone_number(): 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) params.oracle_log_sender.send_log(msg="SIM卡自检开始", subject=LOG_SUBJECT_EVENT, type=TYPE_EVENT_RESET_ALL_SIM_CARDS)
slot_number = 1 slot_number = 1
slot_sum = 30 slot_sum = 31
# card_pool.switch_to_slot(29) # card_pool.switch_to_slot(29)
params.firebase_store_manager.clear_all_sim_info() params.firebase_store_manager.clear_all_sim_info()
for i in range(slot_number, slot_sum + 1): for i in range(slot_number, slot_sum + 1):