``` feat(pet): 重构宠物繁殖系统,添加蛋孵化功能

This commit is contained in:
1
2026-01-20 22:08:36 +00:00
parent cf4660fbe0
commit 5ef922278a
68 changed files with 4467 additions and 584 deletions

View File

@@ -53,17 +53,11 @@ func (s *InfoService) Reg(nick string, color uint32) {
//go s.InitTask()
}
func (s *InfoService) Person(userid uint32) *model.PlayerInfo {
func (s *InfoService) Person(userid uint32) (out *model.PlayerEX) {
m := cool.DBM(s.Model).Where("player_id", userid)
var tt model.PlayerEX
err := m.Scan(&tt)
if err != nil {
return nil
}
cool.DBM(s.Model).Where("player_id", userid).Scan(&out)
ret := tt.Data
return &ret
return
}
func (s *InfoService) GetCache() *model.PlayerInfo {