给英雄赠送食物

This commit is contained in:
meixiongfeng 2023-05-04 11:56:55 +08:00
parent e56b025019
commit 41285d522c

View File

@ -37,7 +37,7 @@ func (this *apiComp) UseGift(session comm.IUserSession, req *pb.LibraryUseGiftRe
return
}
_exp := this.module.configure.GetFavorabilityExp(req.Heroid)
_exp := this.module.configure.GetFavorabilityExp(_heroObj.Heroid)
if len(_exp) == 0 {
code = pb.ErrorCode_ConfigNoFound
return