mirror of
https://github.com/YMFE/yapi.git
synced 2024-11-27 04:40:08 +08:00
fix: sonar 检查
This commit is contained in:
parent
471ebea920
commit
281fab2f8f
@ -93,23 +93,23 @@ class openController extends baseController {
|
||||
|
||||
let successMessage;
|
||||
let errorMessage = [];
|
||||
// let data = await HanldeImportData(
|
||||
// res,
|
||||
// project_id,
|
||||
// selectCatid,
|
||||
// menuList,
|
||||
// projectData.basePath,
|
||||
// dataSync,
|
||||
// err => {
|
||||
// errorMessage.push(err);
|
||||
// },
|
||||
// msg => {
|
||||
// successMessage = msg;
|
||||
// },
|
||||
// () => {},
|
||||
// token,
|
||||
// yapi.WEBCONFIG.port
|
||||
// );
|
||||
let data = await HanldeImportData(
|
||||
res,
|
||||
project_id,
|
||||
selectCatid,
|
||||
menuList,
|
||||
projectData.basePath,
|
||||
dataSync,
|
||||
err => {
|
||||
errorMessage.push(err);
|
||||
},
|
||||
msg => {
|
||||
successMessage = msg;
|
||||
},
|
||||
() => {},
|
||||
token,
|
||||
yapi.WEBCONFIG.port
|
||||
);
|
||||
|
||||
if (errorMessage.length > 0) {
|
||||
return (ctx.body = yapi.commons.resReturn(null, 404, errorMessage.join('\n')));
|
||||
|
Loading…
Reference in New Issue
Block a user