최현영

Finally Highway congest function Fixed

......@@ -747,6 +747,7 @@ function roadcongest(eventObj, msg){
var jsonForcongest = obj;
var number = msg.replace('번', '').trim();
var iscount = 0;
var index = 0;
console.log(number);
count = 0;
console.log(count);
......@@ -771,11 +772,14 @@ function roadcongest(eventObj, msg){
}
roadnumberstringLength = roadnumberstring.length;
if(roadnumberstringLength != 0){
iscount = (roadnumberstringLength % 5);
for(var i = 0; i < (5-iscount); i++ ){
roadnumberstring[roadnumberstringLength] = "이상입니다.";
index = (roadnumberstringLength % 5);
if(index != 0){
for(var i = 1; i <= (4-index); i++ ){
roadnumberstring[roadnumberstringLength + i] = "Out of range";
}
}
}
if(roadnumberstringLength == 0){
var Notfoundroadnumberstring = "검색하신 노선에서 발견된 정체구간은 없습니다.";
......