上传协议修改
This commit is contained in:
parent
49770c8ba8
commit
3ec6774fca
@ -43,6 +43,6 @@ func (this *apiComp) Handle(session comm.IUserSession, req *pb.CatchbugsHandleRe
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
session.SendMsg(string(this.module.GetType()), "handle", &pb.CanineRabbitHandleResp{})
|
session.SendMsg(string(this.module.GetType()), "handle", &pb.CatchbugsHandleResp{})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ func (this *apiComp) Award(session comm.IUserSession, req *pb.EgghuntAwardReq) (
|
|||||||
"egg": info.Egg,
|
"egg": info.Egg,
|
||||||
})
|
})
|
||||||
|
|
||||||
session.SendMsg(string(this.module.GetType()), "info", &pb.EgghuntAwardResp{Id: req.Id, Award: atno})
|
session.SendMsg(string(this.module.GetType()), "award", &pb.EgghuntAwardResp{Id: req.Id, Award: atno})
|
||||||
go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) {
|
go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) {
|
||||||
this.module.WriteUserLog(session.GetUserId(), "EgghuntAwardReq", atno)
|
this.module.WriteUserLog(session.GetUserId(), "EgghuntAwardReq", atno)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user