印度包网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
360 B

1 year ago
package app
import (
"server/call"
"server/modules/web/values"
)
// 从数据库中读取数据
func (g *Gin) CheckActivityExpire(id int) (pass bool) {
act := call.GetConfigActivityByID(id)
if act == nil {
pass = false
g.Code = values.CodeActivityExpire
return
}
pass = act.IsValid()
if !pass {
g.Code = values.CodeActivityExpire
}
return
}