Commit 46c84bce authored by chenweijian's avatar chenweijian

是否新用户

parent c9dceefb
......@@ -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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment