은승우

Update concert.js

...@@ -134,12 +134,12 @@ function handleEvent(event) { ...@@ -134,12 +134,12 @@ function handleEvent(event) {
134 134
135 request(options, function(error,result,body){ 135 request(options, function(error,result,body){
136 if(error) throw new Error(error); 136 if(error) throw new Error(error);
137 - var videourl = { type: 'uri', label: '관련 영상', uri:''}; 137 + var videourl = { type: 'location', label: '관련 영상', title:'name',address:''};
138 138
139 var temp1 = body.split(':'); 139 var temp1 = body.split(':');
140 - videourl.uri += "https://www.youtube.com/watch?v=" + temp1[13].substr(2,11); 140 + videourl.address += "https://www.youtube.com/watch?v=" + temp1[13].substr(2,11);
141 141
142 - console.log(videourl.uri); 142 + console.log(videourl.address);
143 client.replyMessage(event.replyToken, videourl).then(resolve).catch(reject); 143 client.replyMessage(event.replyToken, videourl).then(resolve).catch(reject);
144 }); 144 });
145 }); 145 });
......