错误信息返回

This commit is contained in:
meixiongfeng 2024-01-23 18:25:55 +08:00
parent 692d69d0ba
commit 27c49e1b82

View File

@ -65,8 +65,8 @@ func (this *apiComp) Reach(session comm.IUserSession, req *pb.PlunderReachReq) (
for _, oid := range req.Oid {
if _, ok := land.Ship[oid]; !ok {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,
Message: err.Error(),
Code: pb.ErrorCode_PlunderNotFoundShip,
Title: pb.ErrorCode_PlunderNotFoundShip.ToString(),
}
return
} else {
@ -86,6 +86,7 @@ func (this *apiComp) Reach(session comm.IUserSession, req *pb.PlunderReachReq) (
for _, v := range list.Line {
if v.Oid == oid {
v.Oid = ""
break
}
}
cid = land.Ship[oid].Line.Cid