This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user