| 113 | return json.loads(unpadded_data.decode()) |
| 114 | |
| 115 | def parse_accounts(accounts_str: str) -> list: |
| 116 | accounts = [] |
| 117 | for part in accounts_str.replace("\n", "&").replace("\r", "").split("&"): |
| 118 | part = part.strip() |
| 119 | if "#" in part: |
| 120 | phone, pwd = part.split("#", 1) |
| 121 | elif "@" in part: |
| 122 | phone, pwd = part.split("@", 1) |
| 123 | else: |
| 124 | continue |
| 125 | phone, pwd = phone.strip(), pwd.strip() |
| 126 | if phone and pwd: |
| 127 | accounts.append((phone, pwd)) |
| 128 | return accounts |
| 129 | |
| 130 | def userLoginNormal(phone, password): |
| 131 | timestamp = datetime.datetime.now().strftime("%Y%m%d%H%M%S") |