mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-09 20:10:25 +08:00
重新实现套餐相关功能
This commit is contained in:
@@ -1 +1,8 @@
|
||||
package models
|
||||
|
||||
import timeutil "github.com/iwind/TeaGo/utils/time"
|
||||
|
||||
// IsExpired 判断套餐是否过期
|
||||
func (this *UserPlan) IsExpired() bool {
|
||||
return len(this.DayTo) == 0 || this.DayTo < timeutil.Format("Y-m-d")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user