后端 getEligibility() 原先只返回 hasPrePlanting/canTrade 等内部字段, 缺少前端购买页期望的 canPurchase/maxAdditional/message 字段。 由于 json['canPurchase'] ?? false 默认为 false,导致购买页始终显示"待开启"。 修复:getEligibility() 现在先查询 admin config 的 isActive 状态, 结合用户持仓计算出 canPurchase/maxAdditional/message,同时保留原有字段。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .claude | ||
| api-gateway | ||
| infrastructure | ||
| mpc-system | ||
| scripts | ||
| services | ||
| .env.windows | ||
| docker-compose.windows.yml | ||