1
0
mirror of synced 2024-12-04 19:17:58 +01:00

uuuughhhh

This commit is contained in:
Rin 2022-07-11 12:29:28 +01:00
parent d4ddbc291e
commit d5cd8f519f

View File

@ -8,7 +8,7 @@ export default class StartupModule extends Module {
let msg = {
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
regionId: 1,
placeId: "123",
placeId: "JPN0123",
allowedClientLogTypes: [],
ghostSelectionMinRedoWait: 30,
ghostSelectionMaxRedoWait: 4000,
@ -33,17 +33,18 @@ export default class StartupModule extends Module {
console.log('place list');
let places: wm.wm.protobuf.Place[] = [];
places.push(new wm.wm.protobuf.Place({
placeId: "123",
placeId: "JPN0123",
regionId: 1,
shopName: "WMMT6",
country: "JPN"
}));
let resp = wm.wm.protobuf.PlaceList.encode({places});
let end = resp.finish();
let r = res
.header('Server', 'v388 wangan')
.header('Content-Type', 'application/x-protobuf; revision=8053')
.status(200);
r.send(resp);
r.send(Buffer.from(end));
})
}
}