to see what happens after init

wo_translateinfo
jiyoungcheon 2 weeks ago
parent 35d5c8a4a9
commit 44b06f9f8c

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

Loading…
Cancel
Save