From e1027615b807013fbff239193cf31fe499e2adac Mon Sep 17 00:00:00 2001 From: jiyoungcheon Date: Mon, 6 Jan 2025 03:31:49 -0500 Subject: [PATCH] =?UTF-8?q?announcement=20=EC=9E=98=EB=AA=BB=EB=90=9C=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- icshttp/handler.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/icshttp/handler.go b/icshttp/handler.go index 2e91658..8233e59 100644 --- a/icshttp/handler.go +++ b/icshttp/handler.go @@ -218,7 +218,7 @@ func (s *ScenarioSession) BOTPFunc(w http.ResponseWriter, r *http.Request) { } agent := strings.SplitN(request.CallId, "@", 2) - l.Printf(icslog.LOG_LEVEL_INFO, -1, ">>>>>> DATA INFO[%d] - method [%s], agent [%s], token [%s] talk[%s]", time.Now().UnixNano(), request.Method, agent, request.Token, request.TalkText) + l.Printf(icslog.LOG_LEVEL_INFO, -1, ">>>>>> DATA INFO[%d] - method [%s], agent [%s], token [%s] talk[%s]", time.Now().UnixMilli(), request.Method, agent, request.Token, request.TalkText) response := new(Response) dnis := request.Dnis @@ -271,7 +271,7 @@ func (s *ScenarioSession) BOTPFunc(w http.ResponseWriter, r *http.Request) { srcSession := s.GetSession(request.Token) dstSession := s.GetSession(translateinfo.Token) if request.TalkText != "" { - l.Printf(icslog.LOG_LEVEL_INFO, -1, "[timecheck] Received text [%s] at [%d]", request.TalkText, time.Now().UnixNano()) + l.Printf(icslog.LOG_LEVEL_INFO, -1, "[timecheck] Received text [%s] at [%d]", request.TalkText, time.Now().UnixMilli()) if customerTelno == request.TelNo { l.PrintAnnouce(request.TalkText, false) } else { @@ -279,7 +279,6 @@ func (s *ScenarioSession) BOTPFunc(w http.ResponseWriter, r *http.Request) { } dstRlt := ResStatus{Count: dstSession.Count + 1, TransLateText: request.TalkText} s.UpdateSession(translateinfo.Token, dstRlt) - response.AnounceMents = request.TalkText } if srcSession.TransLateText != "" { @@ -347,7 +346,7 @@ func (s *ScenarioSession) BOTPFunc(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, string(resMarshal)) if response.AnounceMents != "" { - l.Printf(icslog.LOG_LEVEL_INFO, -1, "[timecheck] Sent the text [%s] at [%d]", response.AnounceMents, time.Now().UnixNano()) + l.Printf(icslog.LOG_LEVEL_INFO, -1, "[timecheck] Sent the text [%s] at [%d]", response.AnounceMents, time.Now().UnixMilli()) } }