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

上线配置

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