From 45a788b85242fdc67bb3aa9bcdb25f538cf76188 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 7 Feb 2025 16:44:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=9F=E6=88=B7=E5=AF=BC=E5=87=BAIMS-?= =?UTF-8?q?CDR=E6=95=B0=E6=8D=AE=E8=A1=A8=E5=A4=B4=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/network_data/controller/ims.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/network_data/controller/ims.go b/src/modules/network_data/controller/ims.go index 680db049..5c0a21b3 100644 --- a/src/modules/network_data/controller/ims.go +++ b/src/modules/network_data/controller/ims.go @@ -164,9 +164,9 @@ func (s *IMSController) CDRExport(c *gin.Context) { "A1": "ID", "B1": "Record Behavior", "C1": "Type", - "D1": "Called", - "E1": "Result", - "F1": "Caller", + "D1": "Caller", + "E1": "Called", + "F1": "Result", "G1": "Duration", "H1": "Call Start Time", "I1": "Hangup Time", @@ -217,7 +217,7 @@ func (s *IMSController) CDRExport(c *gin.Context) { // 时长 duration := "-" if v, ok := cdrJSON["callDuration"]; ok && v != nil && callType != "sms" { - duration = fmt.Sprint(parse.Number(v)) + duration = fmt.Sprintf("%ds", parse.Number(v)) } // 呼叫结果 非短信都有code作为结果 sms短信都ok callResult := "Success"