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 {