This commit is contained in:
meixiongfeng 2023-04-28 18:37:46 +08:00
commit f125c6d835
2 changed files with 4 additions and 4 deletions

View File

@ -57,9 +57,9 @@ func (this *apiComp) Drop(session comm.IUserSession, req *pb.CombatDropReq) (cod
code = pb.ErrorCode_DBError
return
}
user := this.module.ModuleUser.GetUser(session.GetUserId())
reward := this.module.ModuleTools.GetGroupDataByLottery(box.Drop, user.Vip, user.Lv)
//reward := this.module.configure.GetDropReward(box.Drop)
// user := this.module.ModuleUser.GetUser(session.GetUserId())
// reward := this.module.ModuleTools.GetGroupDataByLottery(box.Drop, user.Vip, user.Lv)
reward := this.module.configure.GetDropReward(box.Drop)
this.module.DispenseRes(session, reward, true)
atns = make([]*pb.UserAssets, len(reward))
for i, v := range reward {

View File

@ -418,7 +418,7 @@ func (this *User) change(session comm.IUserSession, attr string, add int32) (cha
code = pb.ErrorCode_GoldNoEnough
return
}
go this.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype68, add))
go this.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype68, -(add)))
}
change.Gold += int64(add)
case comm.ResExp: