退出时自动保存
这个提交包含在:
3
CGI.js
3
CGI.js
@ -25,6 +25,9 @@ exports.frame={
|
||||
exports.HOOK = value;
|
||||
}
|
||||
}
|
||||
process.on("exit",()=>{
|
||||
wss.end();
|
||||
});
|
||||
wss.on("connect",(connect)=>{
|
||||
exports.connect = connect;
|
||||
exports.frame.SetHook(false);
|
||||
|
||||
1
Core.js
1
Core.js
@ -46,6 +46,7 @@ fs.exists("./MoudelV2.json",(ex)=>{
|
||||
fs.writeFile("./MoudelV2.json",JSON.stringify({}),(err)=>{});
|
||||
}
|
||||
});
|
||||
|
||||
//var HOOK = false;
|
||||
exports.GetUser=function(user_id){
|
||||
if(!fs.existsSync("./cname.json")){
|
||||
|
||||
@ -91,7 +91,7 @@
|
||||
})
|
||||
</script>
|
||||
</head>
|
||||
<body style="text-align: center;">
|
||||
<body style="text-align: center;font-family:'思源宋体';">
|
||||
<div style="float:right;width:10%;height:5%;">
|
||||
<a>欢迎您,<a id="UserName"></a></a><br><a id="Timer">00:00:00</a>
|
||||
<hr>
|
||||
|
||||
3
WebUI.js
3
WebUI.js
@ -15,6 +15,9 @@ var MainGroup;
|
||||
var ServerWeb = new net.Server();
|
||||
var MessageCount = 0;
|
||||
ServerWeb.on("listening", function () {
|
||||
process.on("exit", function () {
|
||||
ServerWeb.close();
|
||||
});
|
||||
ServerWeb.on("connection", function (UserSock) {
|
||||
UserSock.on("data", function (data) {
|
||||
if (data.toString().indexOf(" ") != 0) {
|
||||
|
||||
3
WebUI.ts
3
WebUI.ts
@ -6,6 +6,9 @@ var MainGroup:Core.InfoType;
|
||||
var ServerWeb = new net.Server();
|
||||
var MessageCount:Number = 0;
|
||||
ServerWeb.on("listening",()=>{
|
||||
process.on("exit",()=>{
|
||||
ServerWeb.close();
|
||||
});
|
||||
ServerWeb.on("connection",(UserSock)=>{
|
||||
UserSock.on("data",(data)=>{
|
||||
if(data.toString().indexOf(" ")!=0){
|
||||
|
||||
在新工单中引用
屏蔽一个用户