错误码补充
This commit is contained in:
parent
e2657a9200
commit
c4ff67cc75
@ -89,6 +89,7 @@ func (this *Equipment) QueryEquipment(uid string, ids ...string) (equipment []*p
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||
Message: fmt.Sprintf("uid :%s id :%s", uid, id),
|
||||
}
|
||||
continue
|
||||
}
|
||||
@ -122,6 +123,7 @@ func (this *Equipment) QueryEquipments(uid string) (equipment []*pb.DB_Equipment
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||
Message: fmt.Sprintf("uid :%s ", uid),
|
||||
}
|
||||
return
|
||||
}
|
||||
@ -349,6 +351,7 @@ func (this *Equipment) SellEquipments(session comm.IUserSession, equs []string)
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
@ -440,6 +443,7 @@ func (this *Equipment) RecycleEquipments(session comm.IUserSession, equs []strin
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
@ -451,6 +455,7 @@ func (this *Equipment) RecycleEquipments(session comm.IUserSession, equs []strin
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||
Message: fmt.Sprintf("HeroId is nil or is lock:%v", v),
|
||||
}
|
||||
this.Errorf("NoCanSell %v", v)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user