This commit is contained in:
liwei 2023-06-27 15:35:20 +08:00
commit 28aa002a9e
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
}