diff --git a/utils/utils.go b/utils/utils.go index 791d7745c546f329ec155b46af0bd14e4f6a4551..0ace8d8021fdff315787ebe268ed41942149f382 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -114,3 +114,11 @@ func Decimal(value float64) float64 { } return newValue } + +// 是否新用户 +func IsNewUser(createTimeUnix uint64) bool { + if int64(createTimeUnix)+DAY_SECOND*7 < time.Now().Unix() { + return true + } + return false +}