``` feat(pet): 重构宠物繁殖系统,添加蛋孵化功能
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user