美食红点注册

This commit is contained in:
meixiongfeng 2023-06-27 14:53:58 +08:00
parent efd31be11f
commit 268b0fc270
2 changed files with 7 additions and 2 deletions

View File

@ -78,7 +78,10 @@ func (this *apiComp) Get(session comm.IUserSession, req *pb.ReddotGetReq) (errda
for k, v := range this.module.hunting.Reddot(session, _rid) {
reddot[int32(k)] = v
}
case comm.Reddot23101:
for k, v := range this.module.gourmet.Reddot(session, _rid) {
reddot[int32(k)] = v
}
}
}
session.SendMsg(string(this.module.GetType()), "get", &pb.ReddotGetAllResp{Reddot: reddot})

View File

@ -47,7 +47,9 @@ func (this *apiComp) GetAll(session comm.IUserSession, req *pb.ReddotGetAllReq)
for k, v := range this.module.friend.Reddot(session, comm.Reddot21101) {
reddot[int32(k)] = v
}
for k, v := range this.module.gourmet.Reddot(session, comm.Reddot23101) {
reddot[int32(k)] = v
}
for k, v := range this.module.pagoda.Reddot(session, comm.Reddot6) {
reddot[int32(k)] = v
}