```
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

fix(player): 修复周重置时间字段名不一致问题

- 修正了Player模型中WeekLastResetTime字段的JSON标签,
  从"last_week_reset_time"改为"week_last_reset_time"
- 更新了数据库更新操作中的字段名以保持一致性
- 调整了登录控制器中的调试循环参数,任务ID范围从3
This commit is contained in:
昔念
2026-03-05 23:51:07 +08:00
parent a4b09a77c3
commit 24e7f2cd17
3 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ type Player struct {
*cool.Model
PlayerID uint64 `gorm:"not null;uniqueIndex;index:idx_pet_by_player_id;comment:'所属玩家ID'" json:"player_id"`
LastResetTime *gtime.Time `struc:"skip" json:"last_reset_time"` // 重置时间,比如电池和每日任务
WeekLastResetTime *gtime.Time `struc:"skip" json:"last_week_reset_time"`
WeekLastResetTime *gtime.Time `struc:"skip" json:"week_last_reset_time"`
Data PlayerInfo `gorm:"type:jsonb;not null;comment:'全部数据'" json:"data"`
}