From 796d6c06d65575d07ecfa1a9c80fa380fbd3cdc0 Mon Sep 17 00:00:00 2001 From: liwei <2211068034@qq.com> Date: Tue, 4 Jul 2023 10:55:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=9C=A8=E6=A1=A9=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/practice/api_practice.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/practice/api_practice.go b/modules/practice/api_practice.go index 3305ca5b5..113d436fd 100644 --- a/modules/practice/api_practice.go +++ b/modules/practice/api_practice.go @@ -75,8 +75,9 @@ func (this *apiComp) Practice(session comm.IUserSession, req *pb.PracticePractic } if pillar.Isunlock != 2 { //柱子未解锁 errdata = &pb.ErrorData{ - Code: pb.ErrorCode_ReqParameterError, - Title: pb.ErrorCode_ReqParameterError.ToString(), + Code: pb.ErrorCode_ReqParameterError, + Title: pb.ErrorCode_ReqParameterError.ToString(), + Message: "pillar is no unlock", } return } @@ -96,8 +97,9 @@ func (this *apiComp) Practice(session comm.IUserSession, req *pb.PracticePractic if pillar.Usenum >= pillarconfigure.Limitation { errdata = &pb.ErrorData{ - Code: pb.ErrorCode_PracticeUseLimit, - Title: pb.ErrorCode_PracticeUseLimit.ToString(), + Code: pb.ErrorCode_PracticeUseLimit, + Title: pb.ErrorCode_PracticeUseLimit.ToString(), + Message: "pillar usenum to Limitation", } return }