|
|
|
@ -580,21 +580,22 @@ func (s *ScenarioSession) BOTPFunc(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
// 맵을 JSON으로 마샬링
|
|
|
|
|
uuiJSON, err := json.Marshal(uuiMap)
|
|
|
|
|
if err != nil {
|
|
|
|
|
fmt.Println("Error marshaling UUI:", err)
|
|
|
|
|
l.Printf(icslog.LOG_LEVEL_ERROR, -1, "Error marshaling UUI: %v", err)
|
|
|
|
|
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 마샬링된 JSON을 json.RawMessage로 변환
|
|
|
|
|
response.Data.UUI = json.RawMessage(uuiJSON)
|
|
|
|
|
response.Data.TelNo = request.TelNo
|
|
|
|
|
s.m.Unlock()
|
|
|
|
|
// s.m.Unlock()
|
|
|
|
|
// response marshal
|
|
|
|
|
|
|
|
|
|
resMarshal, jerr := json.Marshal(response)
|
|
|
|
|
if jerr != nil {
|
|
|
|
|
fmt.Println("Json Marshal error ", jerr)
|
|
|
|
|
l.Printf(icslog.LOG_LEVEL_ERROR, -1, "Json Marshal error %v", jerr)
|
|
|
|
|
}
|
|
|
|
|
fmt.Printf("%+v", response)
|
|
|
|
|
l.Printf(icslog.LOG_LEVEL_INFO, -1, "%+v", response)
|
|
|
|
|
l.Printf(icslog.LOG_LEVEL_INFO, -1, "Send Message\n %s", string(resMarshal))
|
|
|
|
|
|
|
|
|
|
// if s.session[request.Token].Count < len(scnarioConf[dnis]) && scnarioConf[dnis][s.session[request.Token].Count].TimeValue {
|
|
|
|
|