fix: kpi upf pust data neId

This commit is contained in:
TsMask
2024-09-02 17:01:27 +08:00
parent ed80c97536
commit 6f3390caf7

View File

@@ -328,8 +328,7 @@ func PostKPIReportFromNF(w http.ResponseWriter, r *http.Request) {
// 推送自定义KPI到ws订阅组
wsService.NewWSSendImpl.ByGroupID(fmt.Sprintf("%s%s_%s", wsService.GROUP_KPI_C, neInfo.NeType, neInfo.NeId), kpiCEvent)
if neInfo.NeType == "UPF" {
// 推送标识为12_RMUID, exp: 12_4400HXUPF001
wsService.NewWSSendImpl.ByGroupID(wsService.GROUP_KPI_UPF+kpiReport.Task.NE.RmUID, kpiEvent)
wsService.NewWSSendImpl.ByGroupID(wsService.GROUP_KPI_UPF+neInfo.NeId, kpiEvent)
}
}