From fcb2049cc777296d3549483fd628f3a00f29737e Mon Sep 17 00:00:00 2001 From: zeus Date: Wed, 9 Dec 2020 13:16:12 +0200 Subject: [PATCH] getlog --- swarmlab-app/src/run/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 0d99d89..2115253 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -326,12 +326,14 @@ if(RES.error == 'ok'){ console.log(JSON.stringify(doc)) //socket.write(JSON.stringify({'action': 'log','param': doc.log})); RES.error_msg = "ok" + RES.data = doc res.json(RES) }); } }); }else{ +RES.data = 'no' RES.error_msg = "tokeni err" res.json(RES)