|
@@ -235,10 +235,12 @@ void HttpServer::run_hhttp_sever()
|
|
|
filename = QString("%1/%2").arg(savePath, "monitor.xml");
|
|
filename = QString("%1/%2").arg(savePath, "monitor.xml");
|
|
|
} else if(type == "netparse") {
|
|
} else if(type == "netparse") {
|
|
|
savePath = QString("%1/%2").arg(currentPath, "storage/upload/netparse");
|
|
savePath = QString("%1/%2").arg(currentPath, "storage/upload/netparse");
|
|
|
- filename = QString("%1/%2").arg(savePath, QString::fromStdString(item.filename));
|
|
|
|
|
|
|
+ // filename = QString("%1/%2").arg(savePath, QString::fromStdString(item.filename));
|
|
|
|
|
+ filename = QString("%1/%2").arg(savePath, "netparse.xml");
|
|
|
} else if(type == "formula") {
|
|
} else if(type == "formula") {
|
|
|
savePath = QString("%1/%2").arg(currentPath, "storage/upload/formula");
|
|
savePath = QString("%1/%2").arg(currentPath, "storage/upload/formula");
|
|
|
- filename = QString("%1/%2").arg(savePath, QString::fromStdString(item.filename));
|
|
|
|
|
|
|
+ // filename = QString("%1/%2").arg(savePath, QString::fromStdString(item.filename));
|
|
|
|
|
+ filename = QString("%1/%2").arg(savePath, "formula.json");
|
|
|
} else if(type == "pluginadd" || type == "pluginupgrade") {
|
|
} else if(type == "pluginadd" || type == "pluginupgrade") {
|
|
|
savePath = QString("%1/%2").arg(currentPath, "storage/upload/plugins");
|
|
savePath = QString("%1/%2").arg(currentPath, "storage/upload/plugins");
|
|
|
filename = QString("%1/%2").arg(savePath, QString::fromStdString(item.filename));
|
|
filename = QString("%1/%2").arg(savePath, QString::fromStdString(item.filename));
|