上传代码
This commit is contained in:
parent
e4caebee25
commit
c25ee07d24
@ -86,10 +86,12 @@ func (this *apiComp) Accept(session comm.IUserSession, req *pb.PracticeAcceptReq
|
||||
this.module.modelQiecuo.Change(session.GetUserId(), map[string]interface{}{
|
||||
"status": 1,
|
||||
"member": redRecord.Member,
|
||||
"battid": redRecord.Battid,
|
||||
})
|
||||
this.module.modelQiecuo.Change(req.Uid, map[string]interface{}{
|
||||
"status": 1,
|
||||
"member": redRecord.Member,
|
||||
"battid": redRecord.Battid,
|
||||
})
|
||||
|
||||
if err := session.SendMsg(string(this.module.GetType()), "accept", &pb.FriendAcceptResp{
|
||||
@ -100,8 +102,7 @@ func (this *apiComp) Accept(session comm.IUserSession, req *pb.PracticeAcceptReq
|
||||
}
|
||||
|
||||
this.module.SendMsgToUser(string(this.module.GetType()), "qiecuonotify",
|
||||
&pb.FriendQiecuonotifyPush{Uid: session.GetUserId(), NotifyType: 2}, req.Uid)
|
||||
&pb.PracticeQiecuonotifyPush{Uid: session.GetUserId(), NotifyType: 2}, req.Uid)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -41,6 +41,7 @@ func (this *modelPvpComp) querypvps() (result []*pb.DBPvpBattle, err error) {
|
||||
|
||||
//查询用户重置数据
|
||||
func (this *modelPvpComp) querypvp(id string) (result *pb.DBPvpBattle, err error) {
|
||||
result = &pb.DBPvpBattle{}
|
||||
if err = this.GetListObj("", id, result); err != nil && err != mgo.MongodbNil {
|
||||
this.module.Errorf("err:%v", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user