UnixMilli method does not exist

jiyoung
jiyoungcheon 3 weeks ago
parent e1027615b8
commit af2fc0fef5

@ -218,7 +218,7 @@ func (s *ScenarioSession) BOTPFunc(w http.ResponseWriter, r *http.Request) {
} }
agent := strings.SplitN(request.CallId, "@", 2) 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().UnixMilli(), 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().UnixNano(), request.Method, agent, request.Token, request.TalkText)
response := new(Response) response := new(Response)
dnis := request.Dnis dnis := request.Dnis
@ -271,7 +271,7 @@ func (s *ScenarioSession) BOTPFunc(w http.ResponseWriter, r *http.Request) {
srcSession := s.GetSession(request.Token) srcSession := s.GetSession(request.Token)
dstSession := s.GetSession(translateinfo.Token) dstSession := s.GetSession(translateinfo.Token)
if request.TalkText != "" { if request.TalkText != "" {
l.Printf(icslog.LOG_LEVEL_INFO, -1, "[timecheck] Received text [%s] at [%d]", request.TalkText, time.Now().UnixMilli()) l.Printf(icslog.LOG_LEVEL_INFO, -1, "[timecheck] Received text [%s] at [%d]", request.TalkText, time.Now().UnixNano())
if customerTelno == request.TelNo { if customerTelno == request.TelNo {
l.PrintAnnouce(request.TalkText, false) l.PrintAnnouce(request.TalkText, false)
} else { } else {
@ -346,7 +346,7 @@ func (s *ScenarioSession) BOTPFunc(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, string(resMarshal)) fmt.Fprintln(w, string(resMarshal))
if response.AnounceMents != "" { if response.AnounceMents != "" {
l.Printf(icslog.LOG_LEVEL_INFO, -1, "[timecheck] Sent the text [%s] at [%d]", response.AnounceMents, time.Now().UnixMilli()) l.Printf(icslog.LOG_LEVEL_INFO, -1, "[timecheck] Sent the text [%s] at [%d]", response.AnounceMents, time.Now().UnixNano())
} }
} }

Loading…
Cancel
Save