Improve live and random live handling

- Add random live handlers, schemas and persistence for lot/play/continue/gameover/reward flow
- Update live status and schedule generation, including special rotation handling and CN timezone alignment
- Add config support for unlocking all daily special rotation songs and document the option
- Refresh live play, reward, precise score and session logic plus bundled main.db updates

Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
2026-06-06 20:59:45 +08:00
parent 4e642cc7c1
commit 0aacf8a4e9
28 changed files with 1085 additions and 228 deletions
+9 -3
View File
@@ -12,15 +12,21 @@ import (
func gameOver(ctx *gin.Context) {
ss := session.Get(ctx)
defer func() {
ss.ClearLiveInProgress()
if ss.UserEng != nil {
ss.ClearLiveInProgress()
}
ss.Finalize()
}()
ss.Respond(liveschema.GameOverResp{
ss.Respond(BuildGameOverResp())
}
func BuildGameOverResp() liveschema.GameOverResp {
return liveschema.GameOverResp{
ResponseData: []any{},
ReleaseInfo: []any{},
StatusCode: 200,
})
}
}
func init() {