From d8aa27ecd0651a5dc50922848d3424afad0c34ab Mon Sep 17 00:00:00 2001 From: cool Date: Tue, 7 Nov 2023 11:23:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=82=E6=95=B0=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=B3=A8=E5=85=A5=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/base/controller/app/comm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/base/controller/app/comm.ts b/src/modules/base/controller/app/comm.ts index 5685b67..40fb442 100644 --- a/src/modules/base/controller/app/comm.ts +++ b/src/modules/base/controller/app/comm.ts @@ -36,7 +36,7 @@ export class BaseAppCommController extends BaseController { @CoolTag(TagTypes.IGNORE_TOKEN) @Get('/param', { summary: '参数配置' }) async param(@Query('key') key: string) { - if (!this.allowKeys.indexOf(key)) { + if (!this.allowKeys.includes(key)) { return this.fail('非法操作'); } return this.ok(await this.baseSysParamService.dataByKey(key));