Refine live schedule data
- Add special_live_rotation_m data to main.db for rotated special live scheduling - Split normal and special live queries to avoid selecting special-only columns from normal_live_m - Build live schedule/status around rotated special lives and derived training lives - Reuse user training energy values in login top info and live party list responses - Set training energy and max training energy defaults to 999 Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
@@ -10,14 +10,15 @@ import (
|
||||
|
||||
func loginTopInfoOnce(ctx *gin.Context) (res any, err error) {
|
||||
ss := session.Get(ctx)
|
||||
userInfo := ss.GetUserInfo()
|
||||
|
||||
res = loginapischema.TopInfoOnceResp{
|
||||
Result: loginapischema.TopInfoOnceData{
|
||||
NewAchievementCnt: 0,
|
||||
UnaccomplishedAchievementCnt: 0,
|
||||
LiveDailyRewardExist: false,
|
||||
TrainingEnergy: 10,
|
||||
TrainingEnergyMax: 10,
|
||||
TrainingEnergy: userInfo.TrainingEnergy,
|
||||
TrainingEnergyMax: userInfo.TrainingEnergyMax,
|
||||
Notification: loginapischema.Notification{
|
||||
Push: false,
|
||||
Lp: false,
|
||||
|
||||
Reference in New Issue
Block a user