update
This commit is contained in:
parent
087c7639ce
commit
3baea4ad44
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user