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