try to add model in the request header

This commit is contained in:
2024-09-24 17:10:04 +02:00
parent 8f4670c6d0
commit 00db63d09b
3 changed files with 32 additions and 4 deletions
+3 -1
View File
@@ -181,7 +181,9 @@ class AppointmentRequestSender(threading.Thread):
sender.cookie_str = _new_le_cookies
time.sleep(random.randint(1, 3))
self.already_tried_contact_list.append(con)
can_continue = sender.send_request(HERMES_REGISTER, js_data, con, csrf=self.valid_csrf)
_telephone_model = _received_dict['model']
can_continue = sender.send_request(HERMES_REGISTER, js_data, con, model=_telephone_model,
csrf=self.valid_csrf)
if can_continue == RequestResult.SUCCESS:
# 让服务器读取成功的约会
try: