feat: 发送养护订阅消息
This commit is contained in:
@@ -31,6 +31,8 @@ func TimeInterval(targetTime time.Time) string {
|
||||
case totalMinutes >= 60: // 1小时 = 60分钟
|
||||
hours := totalMinutes / 60
|
||||
return fmt.Sprintf("%d小时前", hours)
|
||||
case totalMinutes < 1:
|
||||
return "刚刚"
|
||||
default: // 不足1小时
|
||||
return fmt.Sprintf("%d分钟前", totalMinutes)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user