back to iii

master
cn.yimian.xyz 4 years ago
parent 6c72189e70
commit c0ba28c013
  1. 10
      src/index.js

@ -67,11 +67,11 @@ app.post('/', multer({
o.message = 'Fail to remove TMP file..';
}
});
o.data.push('https://storage.yimian.xyz/'+prefix);
if(o.data.length == files.length) {
res.end(JSON.stringify(o));
// res.end(JSON.stringify(o));
}
});
o.data.push('https://storage.yimian.xyz/'+prefix);
//获取文件基本信息
/*
@ -82,6 +82,7 @@ app.post('/', multer({
*/
}
// 设置响应类型及编码
res.end(JSON.stringify(o));
}
});
@ -138,13 +139,13 @@ app.post('/imgbed', multer({
o.message = 'Fail to remove TMP file..';
}
});
o.data.push('https://api.yimian.xyz/img/?path='+prefix);
if(o.data.length == files.length){
res.end(JSON.stringify(o));
// res.end(JSON.stringify(o));
}
});
o.data.push('https://api.yimian.xyz/img/?path='+prefix);
//获取文件基本信息
/*
@ -155,5 +156,6 @@ app.post('/imgbed', multer({
*/
}
// 设置响应类型及编码
res.end(JSON.stringify(o));
}
});

Loading…
Cancel
Save