Commit 9b6a0f75 by 冷斌

update

parent 18f6a3b9
......@@ -800,19 +800,20 @@ 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)]);
// 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"}']);
}
});
......
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