Commit eec75939 authored by 郝聪敏's avatar 郝聪敏

feature: 上传cdn

parent a28af064
...@@ -198,8 +198,8 @@ module.exports = { ...@@ -198,8 +198,8 @@ module.exports = {
} }
readFileList(path.resolve(__dirname, './public'), filesPath); readFileList(path.resolve(__dirname, './public'), filesPath);
const filesList = filesPath.map(filepath => { const filesList = filesPath.map(filepath => {
const filesPathArr = filepath.split('/'); const publicPath = filepath.split('quantum-blocks-h5')[1];;
const Key = `qb/${filesPathArr[filesPathArr.length - 1]}`; const Key = `qb${publicPath}`;
return { return {
Bucket: 'misc-1258270469', Bucket: 'misc-1258270469',
Region: 'ap-beijing', Region: 'ap-beijing',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment