diff --git a/api/errcode/errcode.go b/api/errcode/errcode.go index 97257471..36b994bd 100644 --- a/api/errcode/errcode.go +++ b/api/errcode/errcode.go @@ -69,7 +69,7 @@ var ErrCodeMsgMap = map[ErrCode]string{ ErrCodeMomentSrvFail: "动态服务错误", ErrCodeMomentNotExist: "动态不存在", - ErrCodMomentBlockedFromCreatingMoment: "功能封禁中,截止时间:%v", + ErrCodMomentBlockedFromCreatingMoment: "功能封禁中,截止时间:%s", ErrCodMomentBlockedFromCreatingMomentPermanently: "该功能已被永久封禁", ErrCodeFootPrintSrvFail: "足迹服务错误", 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 {