This commit is contained in:
lightings 2023-06-08 21:16:10 +08:00
parent dd666cd9ec
commit ade2af028c
4 changed files with 9 additions and 5 deletions

BIN
game-server/config.zip Normal file

Binary file not shown.

View File

@ -1,7 +1,7 @@
const net = require("net");
const { Stick, MaxBodyLen } = require("./lib/stick");
const port = 4999;
const host = "192.168.100.83";
const host = "192.168.100.173";
const { Message } = require("./Message");
const stick = new Stick(1024);

View File

@ -3,7 +3,9 @@ const { Stick, MaxBodyLen } = require("./lib/stick");
const { Message } = require("./Message");
const port = 4999;
const host = "192.168.100.83";
// const host = "192.168.100.173";
const host = "r2.cebggame.com";
const stick = new Stick(1024);
stick.setMaxBodyLen(MaxBodyLen["32K"], true);
@ -108,7 +110,8 @@ beforeAll(() => {
serial: 123456,
route: "gate.gateHandler.queryEntry",
params: {
uid: "6516_2006_0xef59f6cc4d190a0ae576c46d4583e92b61174340",
// uid: "6516_2006_0xef59f6cc4d190a0ae576c46d4583e92b61174340",
uid: "6516_2006_0xa5069f54f2ed021e0ac47dbb385420a0d5f41be3",
},
};
client.write(stick.makeData(Message.TYPE_REQUEST, JSON.stringify(param)));
@ -120,7 +123,8 @@ describe("client", () => {
let msg;
test("entry", async () => {
msg = await rpc("connector.entryHandler.entry", { uid: "6516_2006_0xef59f6cc4d190a0ae576c46d4583e92b61174340", });
// msg = await rpc("connector.entryHandler.entry", { uid: "6516_2006_0xef59f6cc4d190a0ae576c46d4583e92b61174340", });
msg = await rpc("connector.entryHandler.entry", { uid: "6516_2006_0xa5069f54f2ed021e0ac47dbb385420a0d5f41be3", });
console.log(msg);
expect(msg.code).toBe(200);
});

View File

@ -5,7 +5,7 @@ const { Message } = require("./Message");
class TestBase {
constructor() {
this.port = 4999;
this.host = "192.168.100.83";
this.host = "192.168.100.173";
this.stick = new Stick(1024);
this.stick.setMaxBodyLen(MaxBodyLen["32K"], true);