This commit is contained in:
zhiqiang feng
2021-01-05 12:43:37 +08:00
parent 67a28c2280
commit b3b10173c3
-14
View File
@@ -36,20 +36,6 @@ func parseArrOrDep(telegram *Telegram, data string) {
* (ARR-CSN3126/A5040-ZSPD-ZBTJ1601) * (ARR-CSN3126/A5040-ZSPD-ZBTJ1601)
* (DEP-CSN3125/A4553-ZGHA0554-ZBTJ-DOF/120820) * (DEP-CSN3125/A4553-ZGHA0554-ZBTJ-DOF/120820)
*/ */
//values := getSplitValues(data)
//l := len(values)
//if l < 4 {
// telegram.ParseErrors = append(telegram.ParseErrors, errors.New("arrival data less than 4 "))
// return
//}
//
//telegram.FlightNumber, telegram.RegisterNumber = parseFlight(values[1])
//telegram.Departure, telegram.DepartureTime = parseAirportAndTime(values[2])
//telegram.Destination, telegram.DestinationTime = parseAirportAndTime(values[3])
//if l == 5 {
// parseDof(telegram, values[4])
//}
//fmt.Println(CompositeDepArr)
fields := getFields(CompositeDepArr, data) fields := getFields(CompositeDepArr, data)
if len(fields) < 1 { if len(fields) < 1 {
telegram.ParseErrors = append(telegram.ParseErrors, errors.New("arrival data less than 4 ")) telegram.ParseErrors = append(telegram.ParseErrors, errors.New("arrival data less than 4 "))