财务系统对接总览
财务插件把「售卖」接到主控。插件代码在 CloudHost/plugins/ 下,随主控仓库一起版本管理。
插件清单
| 插件 | 目标系统 | 目录 | 入口文件 | 状态 |
|---|---|---|---|---|
| IDCSmart | 魔方财务 | plugins/QuickIDC-IDCSmart | idcserver.php | 可用 |
| LxdServer-IDCSmart | 魔方财务(LXD 专版) | plugins/LxdServer-IDCSmart | lxdserver.php | 可用 |
| SwapIDC | SwapIDC | plugins/QuickIDC-SwapIDC | openidc.php | 可用 |
| Easypanel-SwapIDC | EasyPanel | plugins/Easypanel-SwapIDC | easypanel.php | 可用 |
| VistaPanel-SwapIDC | VistaPanel | plugins/VistaPanel-SwapIDC | VistaPanel.php | 可用 |
| XiaoHei | 小黑云 | — | — | 规划中 |
对接前准备
- 主控已部署并能创建实例;
- 至少一台在线主机(
hs_name已知); - 主控开启 HTTPS(强烈建议);
- 取得 Bearer Token:
bash
quickidc conf token show --core 0
# 或在「系统设置 → 令牌」查看/重置通用流程
图表渲染中…
插件目录结构
text
plugins/QuickIDC-IDCSmart/
├── idcserver.php # 模块入口(ConfigOptions / CreateAccount / ...)
└── templates/
├── info.html # 产品详情
├── ipv4.html # IPv4 管理
├── ipv6.html # IPv6 管理
├── nat.html # 端口转发
└── proxy.html # 反向代理
plugins/LxdServer-IDCSmart/
├── lxdserver.php
└── templates/{info,ipv6,nat,proxy}.html安全要求
- 插件与主控之间必须 HTTPS,禁止明文 Token 走公网;
- 插件目录不要暴露目录索引;
- Token 泄露等同于主控管理员权限,轮换后记得同步所有插件;
- 财务系统的回调地址建议加 IP 白名单。