This commit is contained in:
xiaojunnuo
2025-01-19 01:21:58 +08:00
parent 7f6d03c02a
commit 3b2107a4f1
2 changed files with 7 additions and 1 deletions

View File

@@ -63,7 +63,7 @@ export class OpenKeyController extends CrudController<OpenKeyService> {
}
@Post('/getApiToken', { summary: Constants.per.authOnly })
async getApiToken(@Query('id') id: number) {
async getApiToken(@Body('id') id: number) {
await this.service.checkUserId(id, this.getUserId());
const token = await this.service.getApiToken(id);
return this.ok(token);