Commit 2626b000 by 冷斌

update

parent 9b6a0f75
...@@ -800,20 +800,19 @@ io.on('connection', function(socket) { ...@@ -800,20 +800,19 @@ io.on('connection', function(socket) {
/* 系统信息 */ /* 系统信息 */
socket.on('systemadmin',function(data){ socket.on('systemadmin',function(data){
if(data['token'] == config['TOKEN']){ if(data['token'] == config['TOKEN']){
// var data_obj={ var data_obj={
// "msg":[ "msg":[
// { {
// "_method_":"SystemNot", "_method_":"SystemNot",
// "action":"1", "action":"1",
// "ct":''+ data.content, "ct":"asdfasdf",
// "msgtype":"4" "msgtype":"4"
// } }
// ], ],
// "retcode":"000000", "retcode":"000000",
// "retmsg":"OK" "retmsg":"OK"
// }; };
// io.emit('broadcastingListen',[JSON.stringify(data_obj)]); io.emit('broadcastingListen',[JSON.stringify(data_obj)]);
io.emit('broadcastingListen',['{"msg":[{"_method_":"SystemNot","action":"1","ct":"'+ data.content +'","msgtype":"4"}],"retcode":"000000","retmsg":"OK"}']);
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment