mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2025-12-11 00:22:49 +00:00
修复参数配置注入错误
This commit is contained in:
parent
2d538a7a62
commit
d8aa27ecd0
@ -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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user