mirror of
https://github.com/certd/certd.git
synced 2026-04-29 08:47:24 +08:00
chore:
This commit is contained in:
@@ -28,7 +28,6 @@ export class PlusService {
|
|||||||
}
|
}
|
||||||
licenseInfo.license = license;
|
licenseInfo.license = license;
|
||||||
await this.sysSettingsService.saveSetting(licenseInfo);
|
await this.sysSettingsService.saveSetting(licenseInfo);
|
||||||
await this.updateLicense(license);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return new PlusRequestService({ subjectId, bindUrl, installTime, saveLicense });
|
return new PlusRequestService({ subjectId, bindUrl, installTime, saveLicense });
|
||||||
@@ -56,7 +55,9 @@ export class PlusService {
|
|||||||
|
|
||||||
async bindUrl(url: string) {
|
async bindUrl(url: string) {
|
||||||
const plusRequestService = await this.getPlusRequestService();
|
const plusRequestService = await this.getPlusRequestService();
|
||||||
return await plusRequestService.bindUrl(url);
|
const res = await plusRequestService.bindUrl(url);
|
||||||
|
this.plusRequestService = null;
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
async register() {
|
async register() {
|
||||||
@@ -65,6 +66,7 @@ export class PlusService {
|
|||||||
if (!licenseInfo.license) {
|
if (!licenseInfo.license) {
|
||||||
await plusRequestService.register();
|
await plusRequestService.register();
|
||||||
logger.info('站点注册成功');
|
logger.info('站点注册成功');
|
||||||
|
this.plusRequestService = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user