From e7a6f0bba5ef3063a69e2eaf7ddaef75597d5576 Mon Sep 17 00:00:00 2001 From: pggiroro Date: Tue, 23 Sep 2025 11:01:37 +0800 Subject: [PATCH] fix: catalog after recover register --- plugin/gb28181/api.go | 2 +- plugin/gb28181/registerhandler.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/gb28181/api.go b/plugin/gb28181/api.go index 0bc01aa..b196f0c 100644 --- a/plugin/gb28181/api.go +++ b/plugin/gb28181/api.go @@ -2897,7 +2897,7 @@ func (gb *GB28181Plugin) UpdateChannel(ctx context.Context, req *pb.UpdateChanne } // 记录日志 - gb.Info("通道信息已更新", + gb.Debug("通道信息已更新", "通道ID", req.Id, "自定义通道ID", channel.DeviceChannel.CustomChannelId, "自定义名称", channel.DeviceChannel.CustomName) diff --git a/plugin/gb28181/registerhandler.go b/plugin/gb28181/registerhandler.go index 410199d..35ec4d9 100644 --- a/plugin/gb28181/registerhandler.go +++ b/plugin/gb28181/registerhandler.go @@ -327,6 +327,7 @@ func (task *registerHandlerTask) RecoverDevice(d *Device, req *sip.Request) { //} task.gb.DB.Save(d) } + d.catalog() return }