mirror of
https://github.com/YMFE/yapi.git
synced 2025-03-01 14:05:44 +08:00
fix: 判断project id参数格式的bug
This commit is contained in:
parent
20de8e6784
commit
dc1218dc55
@ -667,7 +667,7 @@ class interfaceController extends baseController {
|
||||
async getCatMenu(ctx) {
|
||||
let project_id = ctx.request.query.project_id;
|
||||
|
||||
if (!project_id || !isNaN(project_id)) {
|
||||
if (!project_id || isNaN(project_id)) {
|
||||
return ctx.body = yapi.commons.resReturn(null, 400, '项目id不能为空');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user