fix: AMF-audit日志文件截取修复
This commit is contained in:
@@ -90,7 +90,12 @@ func (r AMF) GetAuditLog(neId string) ([]map[string]any, error) {
|
||||
case 10:
|
||||
tai = strings.TrimPrefix(item[6], "TAI:")
|
||||
opType = strings.TrimPrefix(item[7], "OP-TYPE:")
|
||||
regType = strings.TrimPrefix(item[8], "REG-TYPE:")
|
||||
if opType == "REGISTRATION" {
|
||||
regType = strings.TrimPrefix(item[8], "REG-TYPE:")
|
||||
}
|
||||
if opType == "SERVICE-REO" {
|
||||
regType = strings.TrimPrefix(item[8], "SERVICE-TYPE:")
|
||||
}
|
||||
result = strings.TrimPrefix(item[9], "RESULT:")
|
||||
default:
|
||||
fmt.Printf("Warning: unexpected log format, arrLen=%d, item=%v\n", arrLen, item)
|
||||
|
||||
Reference in New Issue
Block a user