홍용민

배열 형식 변경

......@@ -63,7 +63,7 @@ for(var i=0; i<routeID.length; i++){
const GateBusUrl = bus_url + '?servicekey=' + process.env.key + '&stationId=' + gateStationID; //국제캠 정문 정류장
let date = new Date();
let predictTime;
let predictTime = ['-1', '-1', '-1', '-1'];
function predict(){
console.log(GateBusUrl);
......@@ -94,7 +94,7 @@ function predict(){
Bus[index]["MinPredictTime"] = predictHour1 + ":" + predictMinute1;
Bus[index]["MaxPredictTime"] = predictHour2 + ":" + predictMinute2;
predictTime = [Bus[index].MinPredictTime, Bus[index].MaxPredictTime];
predictTime = [predictHour1 + "", predictMinute1 + "", predictHour2 + "", predictMinute2 + ""]
}
})
})
......