root 1 anno fa
parent
commit
9864c1df22
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      node/message.js

+ 1 - 1
node/message.js

@@ -2057,7 +2057,7 @@ us.getcscl = function (response, calssid, pageid, userid) {
                     console.log(_user)
                     ret[0][0].user = _user; //这里是项目当前所有用户
                     ret[0][0].data = _data; //把思维网格的内容转化成数组
-                    if (userid && us.user) {
+                    if (userid && us.user[userid]) {
                         us.sendUser(us.user[userid], "cscl", pageid, calssid); //加入知识建构项目后通知所有的用户
                     }
                     response.end(JSON.stringify(ret)); //返回文档内容