Skip to content

Commit

Permalink
✨ 随机UUID,修复登录号码过多登录失败
Browse files Browse the repository at this point in the history
  • Loading branch information
Cp0204 committed Aug 31, 2024
1 parent 4f8a468 commit 5aa3cbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion telecom_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# _*_ coding:utf-8 _*_

import base64
import random
import requests
from datetime import datetime
from Crypto.PublicKey import RSA
Expand Down Expand Up @@ -60,7 +61,7 @@ def get_fee_flow_limit(self, fee_remain_flow):
def do_login(self, phonenum, password):
phonenum = phonenum or self.phonenum
password = password or self.password
uuid = "01234567890123456789"
uuid = str(random.randint(1000000000000000, 9999999999999999))
ts = datetime.now().strftime("%Y%m%d%H%M%S")
enc_str = f"iPhone 14 13.2.{uuid[:12]}{phonenum}{ts}{password}0$$$0."
body = {
Expand Down

0 comments on commit 5aa3cbf

Please sign in to comment.