主线新增掉落奖励

This commit is contained in:
meixiongfeng 2023-06-21 11:45:18 +08:00
parent bd862f3475
commit 456b361442

View File

@ -187,6 +187,12 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.MlineChall
})
}
}
user := this.module.ModuleUser.GetUser(session.GetUserId())
if lotteryward := this.module.ModuleTools.GetGroupDataByLottery(stageConf.Lotteryward, user.Vip, user.Lv); len(lotteryward) > 0 {
if errdata = this.module.DispenseRes(session, lotteryward, true); errdata != nil {
this.module.Debugf("Mline lotteryward DispenseRes err:+%v", lotteryward)
}
}
// 加英雄经验
if stageConf.HeroExp > 0 {