注册功能

This commit is contained in:
masnn committed 2020-04-09 20:47:23 +08:00
1 parent f259106aa3
commit 6e28dd868e
8 files changed
+55 -39

No files matched your search

+3
View File
@@ -122,6 +122,9 @@ MIDDLEWARE(async (ctx, next) => {
ctx.response.type = 'application/octet-stream';
ctx.redirect(ctx.setRedirect);
}
} else if (ctx.setRedirect) {
ctx.response.type = 'application/octet-stream';
ctx.redirect(ctx.setRedirect);
} else {
throw new NotFoundError();
}