完善虎牙自动注册改密
This commit is contained in:
@@ -204,18 +204,26 @@ class HuyaAutoRegisterRequest(BaseModel):
|
||||
concurrency: int = Field(1, ge=1, le=5)
|
||||
wait_seconds: float = Field(180, ge=15, le=600)
|
||||
poll_interval: float = Field(5, ge=1, le=30)
|
||||
password_prefix: str = Field("hy", max_length=8)
|
||||
fixed_password: str = Field("", max_length=64)
|
||||
|
||||
|
||||
class HuyaAutoRegisterItemOut(BaseModel):
|
||||
line: int
|
||||
phone: str
|
||||
provider: str
|
||||
sms_url: str = ""
|
||||
status: str
|
||||
message: str
|
||||
code: str = ""
|
||||
change_code: str = ""
|
||||
attempts: int = 0
|
||||
change_attempts: int = 0
|
||||
account_id: Optional[int] = None
|
||||
username: str = ""
|
||||
uid: str = ""
|
||||
password: str = ""
|
||||
password_changed: bool = False
|
||||
cookie: str = ""
|
||||
cookie_preview: str = ""
|
||||
started_at: Optional[datetime] = None
|
||||
@@ -231,6 +239,7 @@ class HuyaAutoRegisterBatchOut(BaseModel):
|
||||
concurrency: int
|
||||
wait_seconds: float
|
||||
poll_interval: float
|
||||
password_prefix: str = "hy"
|
||||
total: int
|
||||
success_count: int
|
||||
failed_count: int
|
||||
|
||||
Reference in New Issue
Block a user