From f581cd6eaf7756979a366ce47c80799e2aa3f62d Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 23 Sep 2025 10:49:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20AMF=E4=BA=8B=E4=BB=B6=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=8F=90=E5=8F=96=E9=94=99=E8=AF=AF=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=8E=9F=E5=9B=A0=E5=92=8C=E6=97=B6=E9=97=B4=E7=BC=BA?= =?UTF-8?q?=E5=B0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/network_data/controller/amf.go | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/modules/network_data/controller/amf.go b/src/modules/network_data/controller/amf.go index 46cd7446..886f1f70 100644 --- a/src/modules/network_data/controller/amf.go +++ b/src/modules/network_data/controller/amf.go @@ -10,6 +10,7 @@ import ( "be.ems/src/framework/i18n" "be.ems/src/framework/logger" "be.ems/src/framework/utils/ctx" + "be.ems/src/framework/utils/date" "be.ems/src/framework/utils/file" "be.ems/src/framework/utils/parse" "be.ems/src/framework/vo/result" @@ -224,6 +225,32 @@ func (s *AMFController) UEExport(c *gin.Context) { } } } + if timeStr == "" { + if v, ok := eventJSON["timestamp"]; ok && v != nil { + rowTime := parse.Number(v) * 1000 + timeStr = date.ParseDateToStr(rowTime, date.YYYY_MM_DD_HH_MM_SS_GMT_TZ) + } + } + if eventResult == "" { + if v, ok := eventJSON["result"]; ok && v != nil { + eventResult = v.(string) + if row.EventType == "cm-state" { + for _, v := range dictUEEventCmState { + if eventResult == v.DictValue { + eventResult = i18n.TKey(language, v.DictLabel) + break + } + } + } else { + for _, v := range dictUEAauthCode { + if eventResult == v.DictValue { + eventResult = i18n.TKey(language, v.DictLabel) + break + } + } + } + } + } // for multi-tenancy, get tenant name tenantName := row.TenantName