声讨果实奖励领取

This commit is contained in:
meixiongfeng 2023-12-19 21:11:15 +08:00
parent fa7c1bb404
commit 1951f4ec09
2 changed files with 3 additions and 3 deletions

View File

@ -350,7 +350,7 @@ func (this *apiComp) wishDrawCard(session comm.IUserSession, heroRecord *pb.DBHe
update map[string]interface{}
rsp *pb.HeroDrawCardResp
)
rsp = &pb.HeroDrawCardResp{}
update = make(map[string]interface{})
if conf := this.module.configure.GetWishHeroReplaceConfig(); conf != nil {
if heroRecord.WishHero == "" { // 如果当前许愿英雄是空 则读取 默认许愿英雄

View File

@ -52,8 +52,8 @@ func (this *apiComp) PeachReward(session comm.IUserSession, req *pb.HeroPeachRew
for k, v := range allreawd {
if _, ok := heroRecord.Peach[k]; !ok {
if v1, ok := heroRecord.Race[2]; ok {
if v1 > v.Num { //可以领取
if v1, ok := heroRecord.Race[comm.DrawCardType0]; ok {
if v1 >= v.Num { //可以领取
heroRecord.Peach[k] = true
bchange = true
reward = append(reward, v.Reward)