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

This commit is contained in:
昔念
2026-02-07 21:51:34 +08:00
parent 7d7cc0d174
commit d83d76ca8e
5 changed files with 17 additions and 37 deletions

View File

@@ -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)