From 775595eeb745e036a31ad25207ee91986951fd6b Mon Sep 17 00:00:00 2001 From: Robin <7434053+warrior_of_light_robin@user.noreply.gitee.com> Date: Fri, 13 Dec 2024 18:38:30 +0800 Subject: [PATCH] by Robin at 20241213 --- app/mix/service/notif_builder_handler.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/mix/service/notif_builder_handler.go b/app/mix/service/notif_builder_handler.go index 5f26f87a..56af0f33 100644 --- a/app/mix/service/notif_builder_handler.go +++ b/app/mix/service/notif_builder_handler.go @@ -479,9 +479,9 @@ func (handler *NotifBuilderHandler) handleAudStreamerDirectlyUpdated() { func (handler *NotifBuilderHandler) handleAudProfileChangeApplied() { handler.handlerMap[consts.AudNotifTemp_ProfileChangeApplied] = func(ctx *gin.Context, args ...any) { - zone := args[0].(*dbstruct.Zone) - if zone.Profile != nil { - DefaultService.utilWriteNotifInfo(ctx, consts.AudNotifTemp_ProfileChangeApplied, zone.GetMid()) + req := args[0].(*zoneproto.ApiUpdateReq) + if req.Zone.Profile != nil { + DefaultService.utilWriteNotifInfo(ctx, consts.AudNotifTemp_ProfileChangeApplied, req.Zone.GetMid()) } } }