update
This commit is contained in:
parent
d0d557ac23
commit
5abb015088
@ -53,19 +53,9 @@ func (this *apiComp) Event(session comm.IUserSession, req *pb.StonehengeEventReq
|
||||
}
|
||||
return
|
||||
}
|
||||
// EventType29 特殊事件
|
||||
if eventConf.EventType != EventType29 {
|
||||
if v, ok := stone.Rooms.Eventid[req.Eventid]; !ok || v == true { // 不存在该事件
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||
Message: fmt.Sprintf("req.Eventid err :%d", req.Eventid),
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
_, bBox := stone.Rooms.Box[req.Eventid]
|
||||
// EventType29 特殊事件
|
||||
if eventConf.EventType != EventType29 && eventConf.EventType != EventType10 {
|
||||
if stone.Rooms.Eventid[req.Eventid] { // 重复完成
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_StonehengeRepeatedReward,
|
||||
@ -74,6 +64,8 @@ func (this *apiComp) Event(session comm.IUserSession, req *pb.StonehengeEventReq
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
update["stageID"] = stone.StageID
|
||||
if roomConf, err = this.module.configure.GetStoneRoomDataById(stone.Rooms.Roomid); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
@ -174,7 +166,7 @@ func (this *apiComp) Event(session comm.IUserSession, req *pb.StonehengeEventReq
|
||||
return
|
||||
}
|
||||
// 次数校验
|
||||
if bBox && stone.Rooms.Box[req.Eventid] < eventConf.Value2 {
|
||||
if stone.Rooms.Box[req.Eventid] < eventConf.Value2 {
|
||||
user := this.module.ModuleUser.GetUser(session.GetUserId())
|
||||
// 校验消耗是否
|
||||
// if len(eventConf.CostItem) > 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user