上传代码
This commit is contained in:
parent
1f4ac80e88
commit
6bc5e60b7f
@ -63,15 +63,16 @@ func (this *apiComp) BattleFinish(session comm.IUserSession, req *pb.WTaskBattle
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
user := this.module.ModuleUser.GetUser(session.GetUserId())
|
||||
if prop = this.module.ModuleTools.GetGroupDataByLottery(conf.Reward, user.Vip, user.Lv); len(prop) == 0 {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ConfigNoFound,
|
||||
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||
Message: fmt.Sprintf("掉落组未找到:%d", conf.Reward),
|
||||
if conf.Reward > 0 {
|
||||
user := this.module.ModuleUser.GetUser(session.GetUserId())
|
||||
if prop = this.module.ModuleTools.GetGroupDataByLottery(conf.Reward, user.Vip, user.Lv); len(prop) == 0 {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ConfigNoFound,
|
||||
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||
Message: fmt.Sprintf("掉落组未找到:%d", conf.Reward),
|
||||
}
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
prop = append(prop, conf.Playexp)
|
||||
award = make([]*pb.UserAssets, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user