From 27cda44de346548d73a271e01b31bad65ce577aa Mon Sep 17 00:00:00 2001 From: Leufolium Date: Sat, 27 Apr 2024 19:48:57 +0800 Subject: [PATCH 1/2] by Robin at 20240427 --- app/mix/controller/zone_api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mix/controller/zone_api.go b/app/mix/controller/zone_api.go index 57a94c1e..c4481833 100644 --- a/app/mix/controller/zone_api.go +++ b/app/mix/controller/zone_api.go @@ -17,7 +17,7 @@ func ApiCreateZone(ctx *gin.Context) { ec := service.DefaultService.ApiCreateZone(ctx, req) if ec != errcode.ErrCodeZoneSrvOk { logger.Error("ApiCreateZone fail, req: %v, ec: %v", util.ToJson(req), ec) - ReplyErrorMsg(ctx, "server error") + ReplyErrCodeMsg(ctx, ec) return } From e8ddb5bb9e863a38ae0117b440177bc3b3e2733c Mon Sep 17 00:00:00 2001 From: Leufolium Date: Sat, 27 Apr 2024 19:49:56 +0800 Subject: [PATCH 2/2] by Robin at 20240427 --- api/errcode/errcode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/errcode/errcode.go b/api/errcode/errcode.go index 9d86645a..df4a1d77 100644 --- a/api/errcode/errcode.go +++ b/api/errcode/errcode.go @@ -173,7 +173,7 @@ var ErrCodeMsgMap = map[ErrCode]string{ ErrCodeZoneSrvFail: "空间服务错误", ErrCodeZoneNotExist: "空间不存在", ErrCodeUnlockedZone: "访客未解锁该空间", - ErrCodeZoneDuplicateKey: "空间重复创建", + ErrCodeZoneDuplicateKey: "您已创建空间", ErrCodeZoneMomentSrvFail: "私密圈动态服务错误", ErrCodeZoneMomentNotExist: "私密圈动态不存在",