From 2b5396d96b42fcfea56c48de638ae6419e22c5fc Mon Sep 17 00:00:00 2001 From: Leufolium Date: Mon, 18 Mar 2024 23:34:49 +0800 Subject: [PATCH 1/2] by robin at 20240318; alter text for punishing --- dbstruct/accountpunishment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbstruct/accountpunishment.go b/dbstruct/accountpunishment.go index 03e15930..9588743a 100644 --- a/dbstruct/accountpunishment.go +++ b/dbstruct/accountpunishment.go @@ -23,7 +23,7 @@ func (p *AccountPunishment) GetEndTimeFormatString() string { if p == nil || p.EndTime == nil { return "" } - return time.Unix(util.DerefInt64(p.EndTime), 0).Local().Format("2006年1月2日 15时04分05秒") + return time.Unix(util.DerefInt64(p.EndTime), 0).Local().Format("1/2 15:04") } func (p *AccountPunishment) IsPermanent() bool { From ec2bad2abf8ef31734c4a1c12af8416d41c1dfeb Mon Sep 17 00:00:00 2001 From: Leufolium Date: Mon, 18 Mar 2024 23:36:53 +0800 Subject: [PATCH 2/2] by --- 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 86e405b9..f3222664 100644 --- a/api/errcode/errcode.go +++ b/api/errcode/errcode.go @@ -65,7 +65,7 @@ var ErrCodeMsgMap = map[ErrCode]string{ ErrCodeMomentSrvFail: "动态服务错误", ErrCodeMomentNotExist: "动态不存在", - ErrCodMomentBlockedFromCreatingMoment: "功能封禁中,截止时间:%v", + ErrCodMomentBlockedFromCreatingMoment: "功能封禁中,截止时间:%s", ErrCodMomentBlockedFromCreatingMomentPermanently: "该功能已被永久封禁", ErrCodeFootPrintSrvFail: "足迹服务错误",