This commit is contained in:
MomentQYC 2024-08-30 14:26:28 +08:00
parent 44f62160cb
commit a481f00cab
24 changed files with 406 additions and 4 deletions

View file

@ -92,6 +92,7 @@ export const paramDef = {
},
deeplAuthKey: { type: 'string', nullable: true },
deeplIsPro: { type: 'boolean' },
hfAuthKey: { type: 'string', nullable: true },
enableEmail: { type: 'boolean' },
email: { type: 'string', nullable: true },
smtpSecure: { type: 'boolean' },
@ -506,6 +507,14 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
set.deeplIsPro = ps.deeplIsPro;
}
if (ps.hfAuthKey !== undefined) {
if (ps.hfAuthKey === '') {
set.hfAuthKey = null;
} else {
set.hfAuthKey = ps.hfAuthKey;
}
}
if (ps.enableIpLogging !== undefined) {
set.enableIpLogging = ps.enableIpLogging;
}