问题修复

This commit is contained in:
masnn committed 2020-04-10 23:17:33 +08:00
1 parent 4c2edc3948
commit 26c467f60f
10 files changed
+106 -106

No files matched your search

+1
View File
@@ -60,6 +60,7 @@ function ROUTE(route, handler) {
let args = Object.assign({}, ctx.params, ctx.query, ctx.request.body);
if (args.content) validator.checkContent(args.content);
if (args.title) validator.checkContent(args.title);
if (args.uid) args.uid = parseInt(validator.checkUid(args.uid));
if (h._prepare) await h._prepare(args);
if (h.prepare) await h.prepare(args);
if (h[`_${method}`]) await h[`_${method}`](args);