root 2 years ago
parent
commit
084530e9d7
1 changed files with 3 additions and 3 deletions
  1. 3 3
      node/message.js

+ 3 - 3
node/message.js

@@ -1797,7 +1797,7 @@ us.getMindNetwork = function (response, docid, pageid, userid) {
             function (ret) {
                 if (ret) {
                     ret[0][0].data = us.mindNetwork[docid].content; //把思维网格的内容转化成数组
-                    response.end(JSON.stringify(us.mindNetwork[docid].content)); //返回文档内容
+                    response.end(JSON.stringify(ret)); //返回文档内容
                 }
                 else {
                     response.end(''); //返回文档内容 
@@ -1818,11 +1818,11 @@ us.getMindNetwork = function (response, docid, pageid, userid) {
             function (ret) {
                 if (ret) {
                     us.mindNetwork[docid].content = JSON.parse(ret[0][0].data); //把思维网格的内容转化成数组
-                    response.end(ret); //返回文档内容
+                    response.end(JSON.stringify(ret)); //返回文档内容
                 }
                 else {
                     us.mindNetwork[docid].content = []; //创建一个空数组
-                    response.end('[]'); //返回文档内容 
+                    response.end(''); //返回文档内容 
                 }
             });
     }