From 71803f891d93b8e611a54b35639eabe0fb3919dd Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Fri, 24 Jan 2025 20:02:11 +0800 Subject: [PATCH] chore: --- .../src/controller/basic/settings-controller.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/ui/certd-server/src/controller/basic/settings-controller.ts b/packages/ui/certd-server/src/controller/basic/settings-controller.ts index d30c235d..b0a946ed 100644 --- a/packages/ui/certd-server/src/controller/basic/settings-controller.ts +++ b/packages/ui/certd-server/src/controller/basic/settings-controller.ts @@ -11,6 +11,7 @@ import { SysSuiteSetting, } from '@certd/lib-server'; import { AppKey, getPlusInfo, isComm } from '@certd/plus-core'; +import { cloneDeep } from 'lodash-es'; /** */ @@ -62,7 +63,10 @@ export class BasicSettingsController extends BaseController { } async plusInfo() { - return getPlusInfo(); + const res = getPlusInfo(); + const copy = cloneDeep(res); + delete copy.secret; + return copy; } @Get('/all', { summary: Constants.per.guest })