diff --git a/src/api/crawl/index.js b/src/api/crawl/index.js index 7814172..b57ce11 100644 --- a/src/api/crawl/index.js +++ b/src/api/crawl/index.js @@ -24,12 +24,12 @@ export const news = (disaster_id, keywords, page, isBaidu, id) => { }, }); }; -export const twitter = (disaster_id, keys,stime,etime) => { +export const twitter = (disaster_id, keywords,stime,etime,id) => { return request({ - url: '/api/' + twitterModule + 'socialmedia/twitter', + url: '/api/' + twitterModule + '/socialmedia/twitter', method: 'post', data: { - disaster_id, keys,stime,etime + disaster_id, keywords,stime,etime,id }, }); }; diff --git a/src/views/dataService/multimediaData/component/boot.vue b/src/views/dataService/multimediaData/component/boot.vue index ecf57fe..0cbaac0 100644 --- a/src/views/dataService/multimediaData/component/boot.vue +++ b/src/views/dataService/multimediaData/component/boot.vue @@ -313,7 +313,7 @@ const start = (text) => { getData(); }) }else if(text == 'twitter'){ - twitter(ret[0].disasterId,keywords,state.twitter.date[0],state.twitter.date[1]).then(res=>{ + twitter(ret[0].disasterId,keywords,state.twitter.date[0],state.twitter.date[1],ret[0].id).then(res=>{ ElMessage.success("Data is being acquired!") getData(); })