这个提交包含在:
2022-01-13 18:39:24 +08:00
父节点 2b1652a144
当前提交 870ff5eaba
共有 4 个文件被更改,包括 7 次插入 和 2 次删除

查看文件

@ -214,6 +214,8 @@ exports.frame={
console.log("["+new Date().toString()+"][./Core.js]收到新消息"); console.log("["+new Date().toString()+"][./Core.js]收到新消息");
console.log(info);
info.raw_message = ""; info.raw_message = "";

查看文件

@ -1 +1 @@
{"固定资产":{"862869995":1550,"927980270":35663,"1285908631":500,"2284888681":899,"2645989614":550,"2868445034":1050,"3054331058":1100,"3491504564":500,"3569808588":1000},"利息":{"862869995":"20206","927980270":"20217","2645989614":"20206","2868445034":"20206","3054331058":"20207"},"领工资":{"862869995":"202063","927980270":"202203","2284888681":"202064","2868445034":"202064","3054331058":"202072","3569808588":"202066"},"签到":{"862869995":"202063","927980270":"202203","1285908631":"202061","2284888681":"202064","2645989614":"202064","2868445034":"202061","3054331058":"202072","3491504564":"202163","3569808588":"202066"},"RedPacketPool":0,"SandBox":{},"目标":{},"AITalk":{"927980270":true,"2868445034":false,"3491504564":false,"Core":false},"板砖":{},"公会系统":{"927980270":"共学社"},"AIEnable":{"545541668":true,"588932037":true,"776148636":true,"963936042":true,"966138955":true,"1012022482":true}} {"固定资产":{"862869995":1550,"927980270":25684,"1285908631":500,"2044792347":12745,"2284888681":899,"2645989614":550,"2868445034":1050,"3054331058":1100,"3491504564":500,"3569808588":1000},"利息":{"862869995":"20206","927980270":"20220","2645989614":"20206","2868445034":"20206","3054331058":"20207"},"领工资":{"862869995":"202063","927980270":"202204","2284888681":"202064","2868445034":"202064","3054331058":"202072","3569808588":"202066"},"签到":{"862869995":"202063","927980270":"202204","1285908631":"202061","2044792347":"202203","2284888681":"202064","2645989614":"202064","2868445034":"202061","3054331058":"202072","3491504564":"202163","3569808588":"202066"},"RedPacketPool":0,"SandBox":{},"目标":{},"AITalk":{"927980270":true,"2868445034":false,"3491504564":false,"Core":false},"板砖":{"927980270":0,"2044792347":null},"公会系统":{"927980270":"共学社"},"AIEnable":{"545541668":true,"588932037":true,"776148636":true,"963936042":true,"966138955":true,"1012022482":true},"保镖[2022 0 3]":{"927980270":3}}

查看文件

@ -32,11 +32,13 @@ ServerWeb.on("listening", () => {
}); });
ServerWeb.on("connection", (UserSock) => { ServerWeb.on("connection", (UserSock) => {
UserSock.on("data", (data) => { UserSock.on("data", (data) => {
try{
if (data.toString().indexOf(" ") != 0) { if (data.toString().indexOf(" ") != 0) {
var path = data.toString().split(" "); var path = data.toString().split(" ");
if (path == undefined) { if (path == undefined) {
return; return;
} }
console.log(path)
if (path[1] == "/") { if (path[1] == "/") {
fs.readFile("./WebUI.html", (err, data) => { fs.readFile("./WebUI.html", (err, data) => {
UserSock.write(`HTTP/1.1 200 OK\r\nContent-Length: ${data.length}\r\n\r\n`); UserSock.write(`HTTP/1.1 200 OK\r\nContent-Length: ${data.length}\r\n\r\n`);
@ -105,6 +107,7 @@ ServerWeb.on("listening", () => {
else { else {
UserSock.end("HTTP/1.1 404"); UserSock.end("HTTP/1.1 404");
} }
}catch(err){console.log(err)};
}); });
UserSock.on("close", () => { UserSock.on("close", () => {
UserSock.end(); UserSock.end();

查看文件

@ -24,6 +24,6 @@ const Core = __importStar(require("./Core"));
Core.AddListener((c, i) => { Core.AddListener((c, i) => {
if (i.message.substr(0, 3) == "PIC") { if (i.message.substr(0, 3) == "PIC") {
var u = i.message.replace("PIC", ""); var u = i.message.replace("PIC", "");
Core.frame.SendURLImg(c, i, `https://pixiv.cat/${u}.jpg`); Core.frame.SendURLImg(c, i, `https://pximg.rainchan.win/img?img_id=${u}`);
} }
}); });