|
@@ -104,7 +104,7 @@ func (p *actorPlayer) OnInit() {
|
|
|
p.Timer().Add(60*time.Second, p.SetRewardToDB)
|
|
|
p.Timer().Add(1*time.Minute, p.setRedis)
|
|
|
p.Timer().Add(30*time.Second+time.Duration(rand.Int63n(60)), p.setDb)
|
|
|
- //p.Timer().Add(30*time.Second, p.setInviteReward)
|
|
|
+ p.Timer().Add(30*time.Second, p.setInviteReward)
|
|
|
|
|
|
//p.Timer().Add(1*time.Second, p.addRoll)
|
|
|
|
|
@@ -423,7 +423,7 @@ func (p *actorPlayer) playerSessionClose() {
|
|
|
// sessionClose 接收角色session关闭处理
|
|
|
func (p *actorPlayer) sessionClose() {
|
|
|
online.UnBindPlayer(p.uid)
|
|
|
- p.setDb()
|
|
|
+ //p.setDb()
|
|
|
//p.SetRewardToDB()
|
|
|
p.setRedisAll()
|
|
|
//logoutEvent := event.NewPlayerLogout(p.ActorID(), p.playerId, p.targetPath)
|