This commit is contained in:
aozhiwei 2022-01-25 12:31:26 +08:00
parent 4c3411b9dc
commit e6e181ffc6

View File

@ -32,9 +32,9 @@ utils.registerEventHandler(
app.get('/webapp/index.php', async (req, rsp) => {
const c = req.query.c;
const a = req.query.a;
const handle = handlers[a + '@' + c];
if (handle) {
handle(req, rsp);
const handler = handlers[a + '@' + c];
if (handler) {
handler(req, rsp);
} else {
utils.rspErr(rsp, 100, 'not found');
}