|
@@ -323,7 +323,9 @@ POST /tg-accounts/import
|
|
|
Auth: admin only (GuardedRoute 校验)
|
|
Auth: admin only (GuardedRoute 校验)
|
|
|
Content-Type: multipart/form-data
|
|
Content-Type: multipart/form-data
|
|
|
Body:
|
|
Body:
|
|
|
- files[]: 上传目录下所有文件(浏览器会把 .session / .json / tdata/** 拍平在 FormData 里)
|
|
|
|
|
|
|
+ files[]: 上传目录下所有文件。每个文件的 webkitRelativePath(如 "13252753163/tdata/key_datas")
|
|
|
|
|
+ 必须保留作为 multipart 的 filename 字段;后端据此重建 tdata/ 子目录结构,并按
|
|
|
|
|
+ 文件后缀 / 名称识别 .json / .session / 2fa_password.txt / tdata/**
|
|
|
|
|
|
|
|
Response 200:
|
|
Response 200:
|
|
|
{ account: TgAccount, test_result: { status: "ok"|"cooling"|"fail", message: string } }
|
|
{ account: TgAccount, test_result: { status: "ok"|"cooling"|"fail", message: string } }
|