Update terminal.ts
This commit is contained in:
parent
d2c509cd17
commit
1b7953f688
@ -1006,6 +1006,25 @@ export default class TerminalModule extends Module {
|
|||||||
common.sendResponse(message, res);
|
common.sendResponse(message, res);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// Save Screenshoot
|
||||||
|
app.post('/method/save_screenshot', async (req, res) => {
|
||||||
|
|
||||||
|
// Get the information from the request
|
||||||
|
let body = wm.wm.protobuf.SaveScreenshotRequest.decode(req.body);
|
||||||
|
|
||||||
|
// Response data
|
||||||
|
let msg = {
|
||||||
|
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||||
|
};
|
||||||
|
|
||||||
|
// Encode the response
|
||||||
|
let message = wm.wm.protobuf.SaveScreenshotResponse.encode(msg);
|
||||||
|
|
||||||
|
// Send the response to the client
|
||||||
|
common.sendResponse(message, res);
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
app.post('/method/load_unreceived_user_items', async (req, res) => {
|
app.post('/method/load_unreceived_user_items', async (req, res) => {
|
||||||
@ -1026,24 +1045,6 @@ export default class TerminalModule extends Module {
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
app.post('/method/save_screenshot', async (req, res) => {
|
|
||||||
|
|
||||||
// Get the information from the request
|
|
||||||
let body = wm.wm.protobuf.SaveScreenshotRequest.decode(req.body);
|
|
||||||
|
|
||||||
// Response data
|
|
||||||
let msg = {
|
|
||||||
error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
|
||||||
};
|
|
||||||
|
|
||||||
// Encode the response
|
|
||||||
let message = wmsrv.wm.protobuf.SaveScreenshotResponse.encode(msg);
|
|
||||||
|
|
||||||
// Send the response to the client
|
|
||||||
common.sendResponse(message, res);
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
app.post('/method/check_item_receivable_cars', async (req, res) => {
|
app.post('/method/check_item_receivable_cars', async (req, res) => {
|
||||||
|
|
||||||
// Get the information from the request
|
// Get the information from the request
|
||||||
|
Loading…
x
Reference in New Issue
Block a user