Commit ac127f94 authored by tywldx's avatar tywldx

fix

parent 8c98226e
......@@ -43,7 +43,14 @@ admin.get('/get_node_command/:name', function (req, res) {
admin.get('/get_project_attr/:name', function (req, res) {
res.setHeader("Content-Type","application/json");
var comstr = attrComsArr.join("/");
var str = execSync(`node ./get_project_config.js -name ${req.params.name} -attr ${comstr}`)
var names = req.params.name.split("--");
var p_name = "";
if(names.length > 1){
p_name = names[0]
}else{
p_name = req.params.name
}
var str = execSync(`node ./get_project_config.js -name ${p_name} -attr ${comstr}`)
var items = String(str).replace(/\n/g,"").split("|");
let rs = {},index = 0;
for(let i of items){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment