Commit 66b1b5eb authored by 郝聪敏's avatar 郝聪敏

上线配置

parent 381accb4
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
module.exports = { module.exports = {
schedule: { schedule: {
cron: '*/10 * * * * *', cron: '0 0 10,11,12,15,16,17,18,19,20 * * *',
type: 'worker', type: 'worker',
immediate: true, immediate: true,
}, },
async task() { async task(ctx) {
// ctx.logger.info('定时任务开始'); ctx.logger.info('定时任务开始');
// await ctx.service.home.schedule(); await ctx.service.home.schedule();
// ctx.logger.info('定时任务结束'); ctx.logger.info('定时任务结束');
}, },
}; };
...@@ -419,7 +419,7 @@ const validate = result => { ...@@ -419,7 +419,7 @@ const validate = result => {
class HomeService extends Service { class HomeService extends Service {
async getMails() { async getMails() {
const { ctx } = this; const { ctx } = this;
const limit = 150; const limit = 50;
console.log(`${ctx.app.config.legal.host}/api/email/get/${limit}`); console.log(`${ctx.app.config.legal.host}/api/email/get/${limit}`);
const { data: result } = await ctx.curl(`${ctx.app.config.legal.host}/api/email/get/${limit}`, { const { data: result } = await ctx.curl(`${ctx.app.config.legal.host}/api/email/get/${limit}`, {
dataType: 'json', dataType: 'json',
......
...@@ -59,7 +59,7 @@ module.exports = appInfo => { ...@@ -59,7 +59,7 @@ module.exports = appInfo => {
}, },
}, },
legal: { legal: {
host: 'https://adanos-fe.liangkebang.net', host: 'http://back-law-urge.q-gp.com',
}, },
}; };
...@@ -71,6 +71,10 @@ module.exports = appInfo => { ...@@ -71,6 +71,10 @@ module.exports = appInfo => {
host: 'tracker-fdfs1.quantgroups.com', host: 'tracker-fdfs1.quantgroups.com',
port: 22122, port: 22122,
}, },
{
host: 'tracker-fdfs2.quantgroups.com',
port: 22122,
},
], ],
// 默认超时时间10s // 默认超时时间10s
timeout: 10000, timeout: 10000,
......
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