This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
"blazing/modules/player/model"
|
||||
"context"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
|
||||
"strings"
|
||||
|
||||
@@ -59,17 +58,7 @@ func (s *InfoService) Person(userid uint32) (out *model.Player) {
|
||||
return
|
||||
|
||||
}
|
||||
func (s *InfoService) GetCache() *model.PlayerInfo {
|
||||
|
||||
ret, _ := cool.CacheManager.Get(context.TODO(), fmt.Sprintf("player:%d", s.userid))
|
||||
if ret == nil {
|
||||
return nil
|
||||
}
|
||||
var rets *model.PlayerInfo
|
||||
ret.Struct(&rets)
|
||||
return rets
|
||||
|
||||
}
|
||||
func (s *InfoService) SetLogin() *model.PlayerInfo {
|
||||
|
||||
m := cool.DBM(s.Model).Where("player_id", s.userid)
|
||||
|
||||
Reference in New Issue
Block a user