Commit d1617b5f by 冷斌

update

parent 986640fb
...@@ -43,6 +43,8 @@ ...@@ -43,6 +43,8 @@
alert("内容不能为空"); alert("内容不能为空");
return !1; return !1;
} }
var data2 = {"token":"1234567","content":content};
socket.emit("systemadmin",data2);
$.ajax({ $.ajax({
url:'./index.php?g=admin&m=system&a=send', url:'./index.php?g=admin&m=system&a=send',
data:{content:content}, data:{content:content},
...@@ -50,9 +52,8 @@ ...@@ -50,9 +52,8 @@
dataType:'json', dataType:'json',
success:function(data){ success:function(data){
if(data.error==0){ if(data.error==0){
var data2 = {"token":"1234567","content":content};
console.log(data2, "{$config['chatserver']}"); console.log(data2, "{$config['chatserver']}");
socket.emit("systemadmin",data2); // socket.emit("systemadmin",data2);
alert("发送成功"); alert("发送成功");
}else{ }else{
alert(data.msg); alert(data.msg);
......
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