fix: 判断project id参数格式的bug

This commit is contained in:
suxiaoxin 2017-09-15 09:59:10 +08:00
parent 20de8e6784
commit dc1218dc55

View File

@ -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不能为空');
}