From 2f5e40179f8225378ad640f6bd0c3720d3c8b154 Mon Sep 17 00:00:00 2001 From: zuevav Date: Mon, 5 Oct 2026 19:35:52 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A8=D0=B0=D0=B3=20QUIK:=20=D0=B1=D0=B5=D0=B7?= =?UTF-8?q?=20=D0=BF=D0=BE=D0=B4=D0=BA=D0=BB=D1=8E=D1=87=D1=91=D0=BD=D0=BD?= =?UTF-8?q?=D0=BE=D0=B9=20=D0=B1=D0=B0=D0=B7=D1=8B=20=D0=9C=D0=9D=D0=9F=20?= =?UTF-8?q?=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BE=D1=87=D0=BD=D0=B8=D0=BA=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D1=83=D1=87=D0=B0=D1=82=D0=B5=D0=BB=D0=B5?= =?UTF-8?q?=D0=B9=20=D0=BD=D0=B5=20=C2=AB=D1=81=D0=B2=D0=B5=D1=80=D1=8F?= =?UTF-8?q?=D0=B5=D1=82=D1=81=D1=8F=20=D1=81=200=20=D0=B4=D0=B5=D0=BF?= =?UTF-8?q?=D0=BE=D0=B7=D0=B8=D1=82=D0=B0=D1=80=D0=B8=D0=B5=D0=B2=C2=BB,?= =?UTF-8?q?=20=D0=B0=20=D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=BE,?= =?UTF-8?q?=20=D1=87=D1=82=D0=BE=20bj=20=D0=B7=D0=B0=D0=BF=D0=BE=D0=BB?= =?UTF-8?q?=D0=BD=D0=B8=D1=82=20=D0=B5=D0=B3=D0=BE=20=D0=BF=D0=BE=D1=81?= =?UTF-8?q?=D0=BB=D0=B5=20=D0=BF=D0=BE=D0=B4=D0=BA=D0=BB=D1=8E=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F;=20=C2=AB=D0=9F=D0=BE=D0=B4=D0=B3=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D0=B2=D0=BA=D0=B0=20=D0=BC=D0=BE=D0=B4=D1=83=D0=BB?= =?UTF-8?q?=D0=B5=D0=B9=C2=BB:=20=D1=81=D1=82=D1=80=D0=BE=D0=BA=D0=B0=20?= =?UTF-8?q?=D1=8F=D0=B4=D1=80=D0=B0=20=D0=B1=D0=B5=D0=B7=20=C2=AB=D1=81=20?= =?UTF-8?q?=D0=BE=D0=B1=D1=80=D0=B0=D0=B7=D0=B0=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_014FsEKyJrYF69Cj9ZXzFLRi --- internal/lkgateway/prepare.go | 2 +- internal/lkgateway/quikrecipients.go | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/internal/lkgateway/prepare.go b/internal/lkgateway/prepare.go index e423182..238d77d 100644 --- a/internal/lkgateway/prepare.go +++ b/internal/lkgateway/prepare.go @@ -36,7 +36,7 @@ var prepareCoreFeatures = []string{"quik-mnp", "esia-finance"} // prepareItems — состав лицензии этой установки и состояние каждого модуля. func prepareItems(rc *RuntimeConfig, running, finished bool, runErr string) []PrepareItem { - out := []PrepareItem{{Title: "Ядро bj: обмен с НРД, переводы M2M", State: "ok", Detail: "установлено с образа, версия " + BuildVersion}} + out := []PrepareItem{{Title: "Ядро bj: обмен с НРД, переводы M2M", State: "ok", Detail: "установлено, версия " + BuildVersion}} for _, f := range prepareCoreFeatures { if moduleAllowed(rc, f) { out = append(out, PrepareItem{Title: moduleTitles[f], State: "ok", Detail: "входит в ядро — устанавливать нечего"}) diff --git a/internal/lkgateway/quikrecipients.go b/internal/lkgateway/quikrecipients.go index ee1801d..58af6ec 100644 --- a/internal/lkgateway/quikrecipients.go +++ b/internal/lkgateway/quikrecipients.go @@ -115,6 +115,9 @@ func quikRecipientsRun(ctx context.Context, rc *RuntimeConfig, why string) { if rc == nil || !moduleAllowed(rc, "quik-mnp") || time.Now().Hour() >= quikRecipientsLastHour { return } + if strings.TrimSpace(rc.Snapshot().Quik.Server) == "" { // МНП не подключён — сверять не с чем + return + } quikRecipientsState.Lock() if quikRecipientsState.running { quikRecipientsState.Unlock() @@ -166,6 +169,9 @@ func (s *Server) quikRecipientsLoop(ctx context.Context) { // quikRecipientsInfo — строка о справочнике получателей для страницы «Поручения QUIK». func quikRecipientsInfo() string { + if globalRC != nil && strings.TrimSpace(globalRC.Snapshot().Quik.Server) == "" { + return "Справочник депозитариев-получателей M2M в МНП bj заполнит сам, как только будет подключена база МНП (выше)." + } quikRecipientsState.Lock() defer quikRecipientsState.Unlock() st := struct {