Browse Source

日志查询bug尝试修复

hl 1 year ago
parent
commit
a2013838e6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/web.js

+ 2 - 2
src/web.js

@@ -23,14 +23,14 @@ function init() {
     app.get('/', (req, res) => {
         res.send('is OK!');
     });
-    app.get('/app', (req, res) => {
+    app.get('/app11', (req, res) => {
         // res.send('is OK!');
         var s = JSON.parse("{}");
         robot.appMap.forEach((value, key) => {
             // str.set(key,JSON.stringify(value))
             s.push(key,value)
         })
-        res.send(JSON.stringify(s));
+        res.send({'code': 200, 'data': JSON.stringify(s), "message": "SUCCESS"} );
     });