최현영

Expressfee.json added:

:
......@@ -3,18 +3,23 @@ const request = require('request');
const bodyParser = require('body-parser');
var app = express();
var static = require('serve-static');
//const xlsx = require('xlsx');
const fs = require('fs');
const path = require('path');
const HTTPS = require('https');
const TARGET_URL = 'https://api.line.me/v2/bot/message/reply'
const TOKEN = 'sqNjA99TptppqvcoVFAnU7Kawsl+s7l+JgnZ7r2is97qrFQraIn0sLQ6mTsIPvXLG7FNK34rvjkXbgwuy0/bgrUn4J5eYPn4H/IH27MdimpiXo/yv+obIN9IKlqR+EF2gLmuXSxMU/LWzyGxCk1G0gdB04t89/1O/w1cDnyilFU='
//const PAPAGO_URL = 'https://openapi.naver.com/v1/papago/n2mt'
//const PAPAGO_ID = 'AH9WUFCtTrz9xnJ6dpxB'
//const PAPAGO_SECRET = 'um7UxSvbxD'
//const workbook = xlsx.readFile(__dirname + '/pyblic/Expressfee.xlsx');
const domain = "www.chyoss.tk"
const sslport = 23023;
const buffer = fs.readFileSync('/public/Expressfee.json');
const datafeejson = buffer.toString();
const feedata = JSON.parse(datafeejson);
console.log("Expressfee.json 파일 읽기");
app.use(bodyParser.json());
//전역변수 선언
......@@ -693,7 +698,7 @@ function roadcongest(eventObj, msg ){
for(var i = 0; i < jsonForcongest.list.length; i++){
if(jsonForcongest.list[i].routeNo.indexOf(number) >= 0){
count += 1;
roadnumberstring += ("- 노선이름: " + jsonForcongest.list[i].routeName + ", 정체구간: " + jsonForcongest.list[i].conzoneName + ', 기점종점방향: ' + jsonForcongest.list[i].updownTypeCode + ', 교통량: ' + jsonForcongest.list[i].trafficAmout + ', 평균속도: ' + jsonForcongest.list[i].speed + " ");
roadnumberstring += ("# 노선이름: " + jsonForcongest.list[i].routeName + ", 정체구간: " + jsonForcongest.list[i].conzoneName + ', 기점종점방향: ' + jsonForcongest.list[i].updownTypeCode + ', 교통량: ' + jsonForcongest.list[i].trafficAmout + ', 평균속도: ' + jsonForcongest.list[i].speed + " ");
}
}
......
This diff could not be displayed because it is too large.