CursorPro 后台管理系统 v1.0

功能:
- 激活码管理 (Pro/Auto 两种类型)
- 账号池管理
- 设备绑定记录
- 使用日志
- 搜索/筛选功能
- 禁用/启用功能 (支持退款参考)
- 全局设置 (换号间隔、额度消耗等)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
ccdojox-crypto
2025-12-16 20:54:44 +08:00
commit 9e2333c90c
62 changed files with 9567 additions and 0 deletions

40
backend/run.py Normal file
View File

@@ -0,0 +1,40 @@
#!/usr/bin/env python3
"""
CursorPro 后台管理系统启动脚本
"""
import uvicorn
import os
import sys
# 确保项目路径在 Python 路径中
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
def main():
"""启动服务"""
# 从环境变量或默认值获取配置
host = os.getenv("HOST", "0.0.0.0")
port = int(os.getenv("PORT", "8000"))
reload = os.getenv("RELOAD", "true").lower() == "true"
print(f"""
╔═══════════════════════════════════════════════════════════╗
║ CursorPro 后台管理系统 ║
╠═══════════════════════════════════════════════════════════╣
║ 管理后台: http://{host}:{port}/
║ API 文档: http://{host}:{port}/docs
║ 健康检查: http://{host}:{port}/health
╚═══════════════════════════════════════════════════════════╝
""")
uvicorn.run(
"app.main:app",
host=host,
port=port,
reload=reload,
log_level="info"
)
if __name__ == "__main__":
main()