generated from template/apps-template
修复当只传入id参数时的判断逻辑错误
This commit is contained in:
@@ -108,7 +108,7 @@ app.route({
|
||||
}).define(async (ctx) => {
|
||||
const id = ctx.query.id;
|
||||
const ids = ctx.query.ids || [];
|
||||
if (!id || ids.length === 0) {
|
||||
if (!id && ids.length === 0) {
|
||||
ctx.throw(400, '缺少参数 id');
|
||||
}
|
||||
if (ids.length === 0 && id) {
|
||||
|
||||
Reference in New Issue
Block a user