Commit 2626b000 by 冷斌

update

parent 9b6a0f75
......@@ -800,20 +800,19 @@ io.on('connection', function(socket) {
/* 系统信息 */
socket.on('systemadmin',function(data){
if(data['token'] == config['TOKEN']){
// var data_obj={
// "msg":[
// {
// "_method_":"SystemNot",
// "action":"1",
// "ct":''+ data.content,
// "msgtype":"4"
// }
// ],
// "retcode":"000000",
// "retmsg":"OK"
// };
// io.emit('broadcastingListen',[JSON.stringify(data_obj)]);
io.emit('broadcastingListen',['{"msg":[{"_method_":"SystemNot","action":"1","ct":"'+ data.content +'","msgtype":"4"}],"retcode":"000000","retmsg":"OK"}']);
var data_obj={
"msg":[
{
"_method_":"SystemNot",
"action":"1",
"ct":"asdfasdf",
"msgtype":"4"
}
],
"retcode":"000000",
"retmsg":"OK"
};
io.emit('broadcastingListen',[JSON.stringify(data_obj)]);
}
});
......
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