修复验证码cookie

This commit is contained in:
zhangchenhao
2025-05-15 17:45:00 +08:00
parent 68213f47f6
commit 055f835eb3
2 changed files with 14 additions and 11 deletions

View File

@@ -237,6 +237,9 @@ INSERT INTO settings (key, value, create_time, update_time, active, type) VALUES
InsertIfNotExists(db, "access_type", map[string]any{"name": "baidu", "type": "dns"}, []string{"name", "type"}, []any{"baidu", "dns"})
InsertIfNotExists(db, "access_type", map[string]any{"name": "btwaf", "type": "host"}, []string{"name", "type"}, []any{"btwaf", "host"})
InsertIfNotExists(db, "access_type", map[string]any{"name": "safeline", "type": "dns"}, []string{"name", "type"}, []any{"safeline", "host"})
}
func insertDefaultData(db *sql.DB, table, insertSQL string) {