UserStore/DevGate 不再写死,改为从 MySQL 实时查询(每次校验一条索引查询、 不缓存整表,照顾内存): - 新增 db_pool_from_env(),UserStore 与 DevGate 共用一个 sqlx 懒连接池 - verify() 查 ccuser 表、allows() 查 dev_gate 表,均改为 async - 未设置 DATABASE_URL 时各自回退到内置/文件兜底,便于本地无库开发 连接串经环境变量 DATABASE_URL 注入(线上写在 weather.env)。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| Client | ||
| docs | ||
| Server | ||
| .gitignore | ||