Ubuntu

translate stock name to stock code

Showing 1 changed file with 17 additions and 0 deletions
......@@ -19,6 +19,23 @@ app.post('/hook', function (req, res) {
var source = eventObj.source;
var message = eventObj.message;
let storkList = []
// ########
// file import
// for(let i=0; i<200; i++){
// [000660, SK하이닉스]
// stockList = [[000660, sk하이닉스], []]
}
for (let i=0; i<stockList.length; i++){
if (stockList[i][1] == SK하이닉스)
return stickList[i][0]
}
// ############
// request log
console.log('======================', new Date() ,'======================');
console.log('[request]', req.body);
......