Merge pull request 'feat-IRONFANS-66-Robin' (#188) from feat-IRONFANS-66-Robin into test

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/188
This commit is contained in:
chenhao 2024-03-18 23:43:13 +08:00
commit 6518d37c1f
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ var ErrCodeMsgMap = map[ErrCode]string{
ErrCodeMomentSrvFail: "动态服务错误",
ErrCodeMomentNotExist: "动态不存在",
ErrCodMomentBlockedFromCreatingMoment: "功能封禁中,截止时间:%v",
ErrCodMomentBlockedFromCreatingMoment: "功能封禁中,截止时间:%s",
ErrCodMomentBlockedFromCreatingMomentPermanently: "该功能已被永久封禁",
ErrCodeFootPrintSrvFail: "足迹服务错误",

View File

@ -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 {