...
|
...
|
@@ -10,7 +10,8 @@ const path = require('path'); |
|
|
const fs = require('fs');
|
|
|
const rd = require('rd');
|
|
|
const ws = require('../../lib/ws');
|
|
|
const qn = require('../../lib/qiniu');
|
|
|
const CDNCONFIG = require('../../config/cdn_config');
|
|
|
const qn = require('../../lib/qiniu')(CDNCONFIG.feature); // 活动上传
|
|
|
|
|
|
const FILE_SAVE_ROOT_PATH = './uploads'; // 上传到本地服务器的根目录
|
|
|
const SUPER_FILE_CHECK_PASS = 'yohowebtech.superfile'; // 存在此文件,直接上传到七牛
|
...
|
...
|
@@ -171,7 +172,7 @@ class FileApi { |
|
|
}).skip(skip).limit(limit).exec();
|
|
|
|
|
|
_.forEach(result, perLog => {
|
|
|
perLog.link = FileApi.DOMAIN + perLog.actPath + '/index.html';
|
|
|
perLog.link = _.get(CDNCONFIG, 'feature.origin') + perLog.actPath + '/index.html';
|
|
|
});
|
|
|
|
|
|
return result;
|
...
|
...
|
@@ -179,6 +180,4 @@ class FileApi { |
|
|
|
|
|
}
|
|
|
|
|
|
FileApi.DOMAIN = 'https://feature.yoho.cn'; // 活动域名
|
|
|
|
|
|
module.exports = FileApi; |
...
|
...
|
|