石阵秘境引导关 进入副本支持不选择buff
This commit is contained in:
parent
f89bda8372
commit
b43ea0870c
@ -10,7 +10,7 @@ import (
|
||||
|
||||
//参数校验
|
||||
func (this *apiComp) EnterLevelCheck(session comm.IUserSession, req *pb.StonehengeEnterLevelReq) (errdata *pb.ErrorData) {
|
||||
if req.Stageid == 0 || len(req.Hid) == 0 || req.BuffType == 0 {
|
||||
if req.Stageid == 0 || len(req.Hid) == 0 {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||
@ -88,8 +88,10 @@ func (this *apiComp) EnterLevel(session comm.IUserSession, req *pb.StonehengeEnt
|
||||
}
|
||||
|
||||
update["hero"] = stone.Hero
|
||||
stone.Addweight[req.BuffType] = 1
|
||||
update["addweight"] = stone.Addweight
|
||||
if req.BuffType != 0 {
|
||||
stone.Addweight[req.BuffType] = 1 // 可以不选buff 类型
|
||||
update["addweight"] = stone.Addweight
|
||||
}
|
||||
|
||||
if r := this.module.configure.GetRoomGroupDataByLottery(portal); len(r) > 0 {
|
||||
if curRoomConf, err = this.module.configure.GetStoneRoomDataById(r[0]); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user