mylogrus.MyLog.Infof("match cycle:%v, match result sent msg success, single LocalUserId:%v, RemoteUserId %v\n",matchCycle,msg.LocalUserId,msg.RemoteUserId)
}else{
mylogrus.MyLog.Errorf("match cycle:%v, match result sent msg fail, single LocalUserId:%v, RemoteUserId %v\n",matchCycle,msg.LocalUserId,msg.RemoteUserId)
...
...
@@ -500,9 +505,8 @@ func processMatchSuccess(userClient userCenter.UserClient, val MatchResult, matc
ok1:=false
ok2:=false
ifbuffer,err:=proto.Marshal(msg);err==nil{
matchSuccess(userClient,uids,common.MsgTypeMatchSuccess,buffer)// todo for updating
mylogrus.MyLog.Infof("match cycle:%v, match result sent msg begin LocalUserId:%v, RemoteUserId:%v, LocalUserId:%v, RemoteUserId:%v\n",matchCycle,msg.LocalUserId,msg.RemoteUserId,val.User1Id,val.User2Id)
mylogrus.MyLog.Infof("match cycle:%v, match result sent msg begin LocalUserId:%v, RemoteUserId:%v, LocalUserId:%v, RemoteUserId:%v,matchUid:%v",matchCycle,msg.LocalUserId,msg.RemoteUserId,val.User1Id,val.User2Id,msg.MatchUniqueId)
ok1=true
// 交换数据
uids[0]=val.User2Id
...
...
@@ -510,10 +514,9 @@ func processMatchSuccess(userClient userCenter.UserClient, val MatchResult, matc
msg.RemoteUserId=val.user1External
msg.RemoteUser=user1Info
ifbuffer,err=proto.Marshal(msg);err==nil{
matchSuccess(userClient,uids,common.MsgTypeMatchSuccess,buffer)// todo for updating
mylogrus.MyLog.Infof("match cycle:%v, match result sent msg success LocalUserId:%v, RemoteUserId:%v, LocalUserId:%v, RemoteUserId:%v\n",matchCycle,msg.LocalUserId,msg.RemoteUserId,val.User1Id,val.User2Id)
mylogrus.MyLog.Infof("match cycle:%v, match result sent msg success LocalUserId:%v, RemoteUserId:%v, LocalUserId:%v, RemoteUserId:%v,matchUid:%v",matchCycle,msg.LocalUserId,msg.RemoteUserId,val.User1Id,val.User2Id,msg.MatchUniqueId)