Commit 877c5512 authored by 郝聪敏's avatar 郝聪敏

fix: 去掉console

parent 5470202b
......@@ -31,13 +31,11 @@ export default class EditorController extends Controller {
}
public async get(ctx: Context) {
console.time('getPageInfo');
let pageInfo = await ctx.service.redis.get(`pageInfo:${ctx.params.uuid}`);
if (!pageInfo) {
pageInfo = await ctx.model.PageInfo.findOne({where: { uuid: ctx.params.uuid }});
await ctx.service.redis.set(`pageInfo:${ctx.params.uuid}`, pageInfo);
}
console.timeEnd('getPageInfo');
ctx.body = ctx.helper.ok(pageInfo);
}
......
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