...
|
...
|
@@ -180,7 +180,7 @@ r.post('/save', async (ctx) => { |
|
|
return ctx.response.body = result;
|
|
|
});
|
|
|
|
|
|
r.post('/upload', async(ctx) => {
|
|
|
r.post('/upload', async(ctx) => { // 导入关键词EXCEL
|
|
|
if (ctx.request.body._files) {
|
|
|
let file = ctx.request.body._files.up_excel;
|
|
|
const workbook = xlsx.readFile(file.path);
|
...
|
...
|
@@ -201,7 +201,7 @@ r.post('/upload', async(ctx) => { |
|
|
});
|
|
|
console.log(post_data);
|
|
|
if (post_data.length > 0) {
|
|
|
return Req({
|
|
|
return Req({ // 传数据给爬虫接口
|
|
|
method: 'POST',
|
|
|
uri: 'http://spiderwebhook.yoho.cn/importApiHot', // 'http://172.16.6.84:9100/importApiHot',
|
|
|
body: {
|
...
|
...
|
|