fix: 修复IMS导出中呼叫结果的处理逻辑
This commit is contained in:
@@ -519,10 +519,9 @@ func (s BackupExportTableProcessor) exportIMS(hour int, columns []string, filePa
|
|||||||
if col == "cause" {
|
if col == "cause" {
|
||||||
if callType == "sms" {
|
if callType == "sms" {
|
||||||
arr[i] = "Success"
|
arr[i] = "Success"
|
||||||
continue
|
|
||||||
} else {
|
} else {
|
||||||
|
callResult := "Other"
|
||||||
if v, ok := cdrJSON["cause"]; ok && v != nil {
|
if v, ok := cdrJSON["cause"]; ok && v != nil {
|
||||||
callResult := "Other"
|
|
||||||
cause := fmt.Sprint(v)
|
cause := fmt.Sprint(v)
|
||||||
for _, v := range dictCDRSipCode {
|
for _, v := range dictCDRSipCode {
|
||||||
if cause == v.DataValue {
|
if cause == v.DataValue {
|
||||||
@@ -530,8 +529,8 @@ func (s BackupExportTableProcessor) exportIMS(hour int, columns []string, filePa
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
arr[i] = callResult
|
|
||||||
}
|
}
|
||||||
|
arr[i] = callResult
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 呼叫时间
|
// 呼叫时间
|
||||||
|
|||||||
Reference in New Issue
Block a user