This commit is contained in:
meixiongfeng 2023-08-11 12:11:23 +08:00
parent 087c7639ce
commit 3baea4ad44

View File

@ -52,14 +52,14 @@ func (this *apiComp) Complete(session comm.IUserSession, req *pb.StorylineComple
return
}
// if item, ok = info.Item[conf.Hero]; !ok {
// errdata = &pb.ErrorData{
// Code: pb.ErrorCode_ReqParameterError,
// Title: pb.ErrorCode_ReqParameterError.ToString(),
// Message: fmt.Sprintf("no activation hero:%d", conf.Hero),
// }
// return
// }
if item, ok = info.Item[conf.Hero]; !ok {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ReqParameterError,
Title: pb.ErrorCode_ReqParameterError.ToString(),
Message: fmt.Sprintf("no activation hero:%d", conf.Hero),
}
return
}
//前置判断
if conf.Onlevel != 0 && item.Level[conf.Onlevel] == 0 {
errdata = &pb.ErrorData{