master
chendian 1 year ago
parent 5c85a4a3f8
commit df2a35ee06

@ -86,6 +86,7 @@ func (s *User) OnRecv(msgId int32, data interface{}) {
} }
func (s *User) OnRecvPush(data string) { func (s *User) OnRecvPush(data string) {
s.Log("OnRecvPush", data)
msg := &pb.NotifyAudienceAction{} msg := &pb.NotifyAudienceAction{}
err := json.Unmarshal([]byte(data), msg) err := json.Unmarshal([]byte(data), msg)
if err != nil { if err != nil {
@ -125,7 +126,7 @@ func (s *User) OnLogin(msg *pb.Login) {
if !msg.IsDebug { if !msg.IsDebug {
roomId, uid, nickName, result = s.mgr.Login(msg.AppId, msg.Token) roomId, uid, nickName, result = s.mgr.Login(msg.AppId, msg.Token)
} else { } else {
roomId, uid, nickName, result = "debug", "debug", "debug", pb.ERROR_CODE_SUCCESS roomId, uid, nickName, result = "1111111111111111111", "debug", "debug", pb.ERROR_CODE_SUCCESS
} }
s.appId = msg.AppId s.appId = msg.AppId
s.roomId = roomId s.roomId = roomId

Loading…
Cancel
Save