修改SNAPI内部路径,修改UA头

This commit is contained in:
2025-09-13 17:13:26 +08:00
parent 8ed1e3a4da
commit f9e1ffe04e
20 changed files with 44 additions and 28 deletions

View File

@@ -3,6 +3,7 @@ import json
import uuid
import platform
import hashlib
from . import PyWebPageAPI
class AuthClient:
def __init__(self, base_url):
@@ -14,7 +15,7 @@ class AuthClient:
self.factors = []
self.selected_factor_id = None
self.password = ''
self.user_store = f"SolianForPythonApp/0.000.001({platform.system()})" # 您可以自定义此User-Agent字符串
self.user_store = f"SolianForPythonApp/0.0.1(A)({PyWebPageAPI.GetDeviceInfo()})" # 您可以自定义此User-Agent字符串
self.device_id = self.user_store
def generate_device_id(self):
@@ -201,7 +202,7 @@ class AuthClient:
# 示例调用
if __name__ == "__main__":
auth_client = AuthClient(base_url='https://api.solian.app/id')
account_identifier = 'nanci'#你的账号
account_identifier = ''#你的账号
selected_factor_id = "enter-code" # 用户需要选择一个因素
password = ''#你的密码
# 第一步:检查账户有效性