root il y a 1 an
Parent
commit
97ca3eae6a
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      node/message.js

+ 2 - 2
node/message.js

@@ -737,7 +737,6 @@ us.updatemindNetwork = function (messageInfo) {
 * @param {object} message 消息信息
 */
 us.updatecscl = function (messageInfo, classId) {
-
     messageInfo = messageInfo[0];
     if (us.cscl[classId]) {
         var i, j, _is;
@@ -2001,6 +2000,7 @@ us.getcscl = function (response, calssid, pageid, userid) {
         us.mysql.usselect(['172.16.12.5', 'pbl', 'select_room', calssid],
             function (ret) {
                 if (ret) {
+                    console.log(ret[0][0].data)
                     ret[0][0].data = us.cscl[calssid].content; //把思维网格的内容转化成数组
                     response.end(JSON.stringify(ret)); //返回文档内容
                 }
@@ -2022,8 +2022,8 @@ us.getcscl = function (response, calssid, pageid, userid) {
         us.mysql.usselect(['172.16.12.5', 'pbl', 'select_room', calssid],
             function (ret) {
                 if (ret) {
+                    console.log(ret[0][0].data)
                     us.cscl[calssid].content = JSON.parse(ret[0][0].data); //把思维网格的内容转化成数组
-                    console.log(us.cscl[calssid]);
                     response.end(JSON.stringify(ret)); //返回文档内容
                 }
                 else {