更新指定更新XXX账号指令 开放ptkey过期提醒
This commit is contained in:
parent
89af831d10
commit
2fc2e711d0
@ -7,7 +7,7 @@ type UserAdmin struct {
|
||||
|
||||
func IsUserAdmin(id string) bool {
|
||||
user := UserAdmin{}
|
||||
db.Where(Content+" = ?", id).First(user)
|
||||
//db.Where(Content+" = ?", id).First(user)
|
||||
if len(user.Content) > 0 {
|
||||
return true
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user