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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// if item, ok = info.Item[conf.Hero]; !ok {
|
if item, ok = info.Item[conf.Hero]; !ok {
|
||||||
// errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
// Code: pb.ErrorCode_ReqParameterError,
|
Code: pb.ErrorCode_ReqParameterError,
|
||||||
// Title: pb.ErrorCode_ReqParameterError.ToString(),
|
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||||
// Message: fmt.Sprintf("no activation hero:%d", conf.Hero),
|
Message: fmt.Sprintf("no activation hero:%d", conf.Hero),
|
||||||
// }
|
}
|
||||||
// return
|
return
|
||||||
// }
|
}
|
||||||
//前置判断
|
//前置判断
|
||||||
if conf.Onlevel != 0 && item.Level[conf.Onlevel] == 0 {
|
if conf.Onlevel != 0 && item.Level[conf.Onlevel] == 0 {
|
||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
|
Loading…
Reference in New Issue
Block a user