修改SNAPI内部路径,修改UA头
This commit is contained in:
@@ -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 = ''#你的密码
|
||||
# 第一步:检查账户有效性
|
||||
|
Reference in New Issue
Block a user