铁匠铺 顾客上限

This commit is contained in:
meixiongfeng 2023-09-05 17:40:49 +08:00
parent b102f80188
commit 68ea7033ff

View File

@ -26,6 +26,11 @@ func (this *apiComp) Refuse(session comm.IUserSession, req *pb.SmithyRefuseReq)
var errCustom = new(comm.CustomError)
if errors.As(err, &errCustom) {
this.module.Debug(errCustom.Code.String())
errdata = &pb.ErrorData{
Code: pb.ErrorCode_SmithyCustomerLimit,
Title: pb.ErrorCode_SmithyCustomerLimit.ToString(),
Message: err.Error(),
}
} else {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,