|
|
|
@ -191,6 +191,8 @@ func (s *User) OnGetRank(msg *pb.GetRank) {
|
|
|
|
|
|
|
|
|
|
|
|
func (s *User) setPushActive(isActive bool) {
|
|
|
|
func (s *User) setPushActive(isActive bool) {
|
|
|
|
if isActive {
|
|
|
|
if isActive {
|
|
|
|
|
|
|
|
s.Log("SetPushActive1", s.appId)
|
|
|
|
|
|
|
|
s.Log("SetPushActive2", s.roomId)
|
|
|
|
redis.Subscribe(s.appId, s.roomId, s.OnRecvPush, s.pushCloseChan)
|
|
|
|
redis.Subscribe(s.appId, s.roomId, s.OnRecvPush, s.pushCloseChan)
|
|
|
|
if !s.isDebug {
|
|
|
|
if !s.isDebug {
|
|
|
|
s.mgr.StartTask(s.appId, s.roomId, "1")
|
|
|
|
s.mgr.StartTask(s.appId, s.roomId, "1")
|
|
|
|
|