feat: 追溯码客户端预览(TOTP式令牌保护,不激活不计数,可切换激活状态预览)

This commit is contained in:
Nixevol
2026-07-12 23:16:37 +08:00
parent 8fd417aa87
commit c1d8fb9ca4
17 changed files with 696 additions and 191 deletions
@@ -62,6 +62,15 @@ export class SettingsController {
return { userId, address, userKeyMasked: this.settingsService.maskSecretPublic(userKey) };
}
@ApiBearerAuth()
@Roles(RoleType.SUPER_ADMIN)
@Post('tianhe/app-key/reveal')
@ApiOperation({ summary: '查看天河链 App Key 掩码(仅返回掩码,不返回明文);用 POST 以便写入操作日志' })
async revealTianheAppKey() {
const all = await this.settingsService.getAllRaw();
return { appKeyMasked: this.settingsService.maskSecretPublic(all.tianheAppKey || '') };
}
@ApiBearerAuth()
@Roles(RoleType.SUPER_ADMIN)
@Post('tianhe/identity/reveal')