Commit 062be9fa authored by 何娜's avatar 何娜

taxH5 fix

parent d7eb204f
Pipeline #4743 passed with stage
in 3 seconds
...@@ -179,8 +179,8 @@ class TaskController extends Controller { ...@@ -179,8 +179,8 @@ class TaskController extends Controller {
async cityConfigs() { async cityConfigs() {
const {ctx, service} = this; const {ctx, service} = this;
// ctx.validate(this.cityConfigRule); ctx.validate(this.cityConfigRule);
// await service.signature.signatureCheck(ctx.request.body); await service.signature.signatureCheck(ctx.request.body);
const result = await service.task.getCityList(); const result = await service.task.getCityList();
ctx.success({ ctx.success({
code: 0, code: 0,
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
module.exports = { module.exports = {
schedule: { schedule: {
interval: '1440m', // 5分钟间隔 interval: '60m', // 测试60分钟间隔
type: 'all', // 所有woker type: 'all', // 所有woker
immediate: true, immediate: true,
}, },
......
...@@ -131,26 +131,10 @@ class TaskService extends Service { ...@@ -131,26 +131,10 @@ class TaskService extends Service {
state: city.state, state: city.state,
queryParam: city.queryParam queryParam: city.queryParam
}); });
// cityTypeLists.push({
// province: city.province,
// name: city.name,
// id: city.id,
// state: city.state,
// type: city.type,
// });
let obj = {
province: city.province,
name: city.name,
id: city.id,
state: city.state,
type: city.type
}
ctx.app.redis.set(city.id, city.type, "EX", 3600) ctx.app.redis.set(city.id, city.type, "EX", 3600)
}); });
cityLists.push(newProv); cityLists.push(newProv);
}); });
// await ctx.app.redis.set('cityTypeLists', cityTypeLists, "EX", 3600);
// ctx.logger.info(ctx.app.redis.get(1))
return cityLists; return cityLists;
} }
} }
......
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