errmessage 返回

This commit is contained in:
meixiongfeng 2023-09-01 17:40:34 +08:00
parent 0d56de59aa
commit 367b03f601

View File

@ -125,9 +125,8 @@ func (this *apiComp) Train(session comm.IUserSession, req *pb.DragonTrainReq) (e
// 校验训练次数
if dragon.Play[req.Ttype].Count >= playConf.Time {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DragonTrainMaxCount,
Title: pb.ErrorCode_DragonTrainMaxCount.ToString(),
Message: err.Error(),
Code: pb.ErrorCode_DragonTrainMaxCount,
Title: pb.ErrorCode_DragonTrainMaxCount.ToString(),
}
return
}