铁匠铺 顾客上限
This commit is contained in:
parent
b102f80188
commit
68ea7033ff
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user