实装大乱斗经验
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-14 04:27:57 +08:00
parent 06b77d598e
commit 24c413030f
10 changed files with 71 additions and 8 deletions

View File

@@ -56,8 +56,7 @@ func (s *InfoService) Reg(nick string, color uint32) *model.PlayerInfo {
}
func (s *InfoService) Person(userid uint32) (out *model.Player) {
s.dbm_fix(s.Model).Scan(&out)
cool.DBM(s.Model).Where("player_id", userid).Scan(&out)
return

View File

@@ -41,11 +41,11 @@ func (s *TalkService) Cheak(mapid uint32, flag int) (int, bool) {
m1.Save(talks)
return int(talks.Count), true
}
if uint32(mapid) != config.NewTalkConfigService().GetCache(flag).MapID {
c := config.NewTalkConfigService().GetCache(flag)
if uint32(mapid) != c.MapID {
return 0, false //没在地图
}
if talks.Count >= config.NewTalkConfigService().GetCache(flag).DailyCollectCount {
if talks.Count >= c.DailyCollectCount {
return 0, false
}
return int(talks.Count), true //int(config.MaxDailyCnt - talks.Count)