fix: AppKey揭示改为显示完整明文并留审计;追溯码链接改为直连系统设置的客户端地址

This commit is contained in:
Nixevol
2026-07-13 00:44:29 +08:00
parent 0f8515ae00
commit d0445c49ee
7 changed files with 27 additions and 37 deletions
+2 -2
View File
@@ -65,10 +65,10 @@ export class SettingsController {
@ApiBearerAuth()
@Roles(RoleType.SUPER_ADMIN)
@Post('tianhe/app-key/reveal')
@ApiOperation({ summary: '查看天河链 App Key 掩码(仅返回掩码,不返回明文);用 POST 以便写入操作日志' })
@ApiOperation({ summary: '揭示天河链 App Key 明文;用 POST 以便写入操作日志(仅超管)' })
async revealTianheAppKey() {
const all = await this.settingsService.getAllRaw();
return { appKeyMasked: this.settingsService.maskSecretPublic(all.tianheAppKey || '') };
return { appKey: all.tianheAppKey || '' };
}
@ApiBearerAuth()