feat(account-check): 登录接口可选 wgapi / iframe
账号检测原来把 WgapiLoginAPI 写死在执行器里,收不到邮箱验证码时只能干等; 登录任务早就可选 iframe(邮箱验证走 iframe 接口)。默认仍 wgapi,旧行为不变。
This commit is contained in:
@@ -331,6 +331,9 @@ class AccountCheckBatchRequest(BaseModel):
|
||||
max_login_retries: int = Field(0, ge=0, le=50)
|
||||
max_total_time: float = Field(300, ge=0, le=3600)
|
||||
use_proxy: bool = False
|
||||
# 登录接口策略,与登录任务同一套取值:wgapi(默认,保持原行为)或 iframe。
|
||||
# 有些人只有其中一套能收到邮箱验证码,所以要能选。
|
||||
api_strategy: str = "wgapi"
|
||||
|
||||
|
||||
class AccountCheckItemOut(BaseModel):
|
||||
@@ -353,6 +356,7 @@ class AccountCheckBatchOut(BaseModel):
|
||||
max_login_retries: int
|
||||
max_total_time: float
|
||||
use_proxy: bool
|
||||
api_strategy: str = "wgapi"
|
||||
total: int
|
||||
finished_count: int
|
||||
running_count: int
|
||||
|
||||
Reference in New Issue
Block a user