mirror of
https://github.com/ddCat-main/cursor-auto-register.git
synced 2025-12-24 13:38:01 +08:00
fix:修复账号列表导入导出功能 #34
This commit is contained in:
4
api.py
4
api.py
@@ -1031,8 +1031,8 @@ async def export_accounts():
|
||||
)
|
||||
|
||||
# 添加导入账号列表功能
|
||||
# @app.post("/accounts/import", tags=["Accounts"])
|
||||
# async def import_accounts(file: UploadFile):
|
||||
@app.post("/accounts/import", tags=["Accounts"])
|
||||
async def import_accounts(file: UploadFile):
|
||||
"""从JSON文件导入账号"""
|
||||
try:
|
||||
# 读取上传的文件内容
|
||||
|
||||
Reference in New Issue
Block a user