From f13a5badc6632461e5293814176bdeaabedc072a Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 29 Apr 2025 17:10:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DIMS=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E4=B8=AD=E5=91=BC=E5=8F=AB=E7=BB=93=E6=9E=9C=E7=9A=84=E5=A4=84?= =?UTF-8?q?=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../processor/backup_export_table/backup_export_table.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/modules/crontask/processor/backup_export_table/backup_export_table.go b/src/modules/crontask/processor/backup_export_table/backup_export_table.go index 8ecf16bc..554eb4dd 100644 --- a/src/modules/crontask/processor/backup_export_table/backup_export_table.go +++ b/src/modules/crontask/processor/backup_export_table/backup_export_table.go @@ -519,10 +519,9 @@ func (s BackupExportTableProcessor) exportIMS(hour int, columns []string, filePa if col == "cause" { if callType == "sms" { arr[i] = "Success" - continue } else { + callResult := "Other" if v, ok := cdrJSON["cause"]; ok && v != nil { - callResult := "Other" cause := fmt.Sprint(v) for _, v := range dictCDRSipCode { if cause == v.DataValue { @@ -530,8 +529,8 @@ func (s BackupExportTableProcessor) exportIMS(hour int, columns []string, filePa break } } - arr[i] = callResult } + arr[i] = callResult } } // 呼叫时间