This commit is contained in:
meixiongfeng 2023-07-04 11:29:32 +08:00
commit 895af10c67

View File

@ -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
}