Commit 66445bed authored by hewenhao's avatar hewenhao

feat: update

parent 2c422f82
export default {
"JKZH_Regular.ttf": {
"u": "https://cdn.jkwljy.com/gos/gfmk2_0tBkur4uL7xKvI23__9X4_"
},
"JKZH_Light.ttf": {
"u": "https://cdn.jkwljy.com/gos/ryWlCRVVfp6PtAQWGpnsKjprcRA_"
},
"JKH_Bold.ttf": {
"u": "https://cdn.jkwljy.com/gos/JX4C5lblFCoZ_t08dy_LkWhhdRM_"
}
}
\ No newline at end of file
export default {
"banner.png": {
"u": "https://test-1257124244.cos.ap-chengdu.myqcloud.com/gos/8RKWyClhGzmlBecYcohfRiatW5Q_",
"w": 750,
"h": 380
}
}
\ No newline at end of file
export default {
"empty-icon.png": {
"u": "https://cdn.jkwljy.com/gos/U48B3xOysUqiFhec_YjzKq5you0_",
"w": 323,
"h": 231
}
}
\ No newline at end of file
export default {
"test.png": {
"u": "https://test-1257124244.cos.ap-chengdu.myqcloud.com/gos/x34OgW1QQdIIU7vhFL7vb4zzZ9g_",
"w": 748,
"h": 1851
}
}
\ No newline at end of file
...@@ -7,7 +7,7 @@ const rawArgv = process.argv.slice(2); ...@@ -7,7 +7,7 @@ const rawArgv = process.argv.slice(2);
const args = require("minimist")(rawArgv); const args = require("minimist")(rawArgv);
const getContentType = require('./utils'); const getContentType = require('./utils');
const { f: folderName = 'reward-day', s: subFolder = '\0_None', env = 'development' } = args; const { f: folderName = 'gos', s: subFolder = '\0_None', env = 'development' } = args;
const isProduction = env === 'production'; const isProduction = env === 'production';
const config = isProduction ? require('./product-config') : require('./config'); const config = isProduction ? require('./product-config') : require('./config');
...@@ -78,6 +78,7 @@ function uploadFile ({ fileName, filePath, relativePath }) { ...@@ -78,6 +78,7 @@ function uploadFile ({ fileName, filePath, relativePath }) {
Region: 'ap-chengdu', Region: 'ap-chengdu',
Key: getFileName(relativePath, filePath), Key: getFileName(relativePath, filePath),
ContentType: getContentType(filePath), ContentType: getContentType(filePath),
CacheControl: 'max-age=5185897',
FilePath: filePath, FilePath: filePath,
}, function (err, data) { }, function (err, data) {
if (err) { if (err) {
......
...@@ -11,6 +11,7 @@ const types = { ...@@ -11,6 +11,7 @@ const types = {
class : 'application/octet-stream', class : 'application/octet-stream',
so : 'application/octet-stream', so : 'application/octet-stream',
dll : 'application/octet-stream', dll : 'application/octet-stream',
ttf : 'application/octet-stream',
oda : 'application/oda', oda : 'application/oda',
pdf : 'application/pdf', pdf : 'application/pdf',
ai : 'application/postscript', ai : 'application/postscript',
......
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