fix: 赋能弹窗已满时不再弹出 + API 补上 post_energize_total 字段

- 赋能按钮点击时先查已赋能总量,>=20 直接 showToast 不弹窗
- 修复控制响应缺失 post_energize_total 字段导致前端永远走到 showOverlay
- fetch 失败/.catch 改为 showToast 而非 showOverlay
This commit is contained in:
2026-06-03 00:23:35 +08:00
parent 1af9fba291
commit 2d05da6709
2 changed files with 21 additions and 11 deletions

View File

@ -103,6 +103,7 @@ func (ec *EnergyController) GetEnergyInfo(c *gin.Context) {
"daily_energize_exp": info.DailyEnergizeExp,
"daily_exp_cap": info.DailyExpCap,
"daily_exp_cap_reached": info.DailyExpCapReached,
"post_energize_total": info.PostEnergizeTotal,
})
}