@@ -91,7 +91,7 @@ func (p *actorPlayer) OnInit() {
//在线用户定时刷新
p.Timer().Add(1*time.Minute, func() {
- if !p.isOnline {
+ if p.Player != nil {
p.Player.InitDaily()
}
})