|
|
@ -271,11 +271,11 @@ 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_DEBUG, -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().UnixNano())
|
|
|
|
if customerTelno == request.TelNo {
|
|
|
|
if customerTelno == request.TelNo {
|
|
|
|
l.PrintAnnouce(request.TalkText, true)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
l.PrintAnnouce(request.TalkText, false)
|
|
|
|
l.PrintAnnouce(request.TalkText, false)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
l.PrintAnnouce(request.TalkText, true)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dstRlt := ResStatus{Count: dstSession.Count + 1, TransLateText: request.TalkText}
|
|
|
|
dstRlt := ResStatus{Count: dstSession.Count + 1, TransLateText: request.TalkText}
|
|
|
|
s.UpdateSession(translateinfo.Token, dstRlt)
|
|
|
|
s.UpdateSession(translateinfo.Token, dstRlt)
|
|
|
@ -347,7 +347,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_DEBUG, -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().UnixNano())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|