We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7a2751 commit 8504664Copy full SHA for 8504664
src/plugins/factory/Lifecycle.js
@@ -41,6 +41,7 @@ module.exports = class Lifecycle {
41
// 404 Not Found
42
app.use(async (ctx, next) => {
43
await next();
44
+ if (ctx.respond === false) return; // 禁用响应
45
if (ctx.status === config.STATUS_CODES.StatusNotFound) {
46
if (!ctx.body) {
47
ctx.result(config.STATUS_CODES.StatusNotFound, 'Not Found API');
0 commit comments