This commit is contained in:
cdle 2021-08-20 10:18:31 +08:00
parent 0afbfc6034
commit ea466ce5b4

View File

@ -48,7 +48,7 @@ func initDB() {
keys[jp.PtKey] = true
pins[jp.PtPin] = true
}
db.Model(JdCookie{}).Where(fmt.Sprintf("%s != ? || %s != ?", Hack, Hack), False, True).Update(Hack, False)
db.Model(JdCookie{}).Where(fmt.Sprintf("%s = ?", Hack), "").Update(Hack, False)
}
func HasPin(pin string) bool {