Режим разработки: служебные разделы, робот НРД и имитации — только по признаку из ключа лицензии

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
zuevav
2026-09-17 18:15:18 +03:00
parent 698956092b
commit 627dbca6af
22 changed files with 157 additions and 38 deletions
+3 -1
View File
@@ -86,7 +86,9 @@ func (h *setupHandlers) saveQuikCycle(w http.ResponseWriter, r *http.Request) {
}
s := h.rc.Snapshot().Quik
s.WritesEnabled = r.FormValue("writes_enabled") != ""
s.Emulate = r.FormValue("emulate") != ""
if devMode(h.rc) { // флажок имитации есть только в режиме разработки
s.Emulate = r.FormValue("emulate") != ""
}
s.AutoOut = r.FormValue("auto_out") != ""
s.AutoIn = r.FormValue("auto_in") != ""
s.PollTerminal = r.FormValue("poll_terminal") != ""