From be556956917142d8887e6eace4805e53dcc3be46 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Tue, 19 Nov 2024 18:07:34 +0800 Subject: [PATCH] chore: --- .../lib-server/src/system/basic/service/plus-service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/libs/lib-server/src/system/basic/service/plus-service.ts b/packages/libs/lib-server/src/system/basic/service/plus-service.ts index 0cfb14d22..4d780202a 100644 --- a/packages/libs/lib-server/src/system/basic/service/plus-service.ts +++ b/packages/libs/lib-server/src/system/basic/service/plus-service.ts @@ -28,7 +28,6 @@ export class PlusService { } licenseInfo.license = license; await this.sysSettingsService.saveSetting(licenseInfo); - await this.updateLicense(license); }; return new PlusRequestService({ subjectId, bindUrl, installTime, saveLicense }); @@ -56,7 +55,9 @@ export class PlusService { async bindUrl(url: string) { const plusRequestService = await this.getPlusRequestService(); - return await plusRequestService.bindUrl(url); + const res = await plusRequestService.bindUrl(url); + this.plusRequestService = null; + return res; } async register() { @@ -65,6 +66,7 @@ export class PlusService { if (!licenseInfo.license) { await plusRequestService.register(); logger.info('站点注册成功'); + this.plusRequestService = null; } }