root 1 rok temu
rodzic
commit
cc6a70b5ee
1 zmienionych plików z 3 dodań i 4 usunięć
  1. 3 4
      node/message.js

+ 3 - 4
node/message.js

@@ -737,14 +737,12 @@ us.updatemindNetwork = function (messageInfo) {
 * @param {object} message 消息信息
 */
 us.updatecscl = function (messageInfo, classId) {
-    console.log("====================messageInfo=========================");
-    console.log(messageInfo);
+
+    messageInfo = messageInfo[0];
     if (us.cscl[classId]) {
         var i, j, _is;
         var _obj = us.cscl[classId].content;
         _obj.backgroundUrl = messageInfo.backgroundUrl;
-        // _obj.edges = messageInfo.edges;
-        // _obj.nodes = messageInfo.nodes;
         for (j = 0; j < messageInfo.edges.length; j++) {
             _is = true;
             for (i = 0; i < _obj.edges.length; i++) {
@@ -771,6 +769,7 @@ us.updatecscl = function (messageInfo, classId) {
                 _obj.nodes.push(messageInfo.nodes[i])
             }
         }
+        console.log("====================messageInfo2=========================");
         console.log(_obj);
         //如果不存在则去数据库查找
         us.mysql.usselect(['172.16.12.5', 'pbl', 'updateRoomData', JSON.stringify(_obj), classId],