mirror of
https://github.com/certd/certd.git
synced 2025-11-25 09:10:11 +08:00
perf: cname 域名映射记录可读性优化
This commit is contained in:
@@ -12,13 +12,18 @@ export class PlusService {
|
||||
plusServerBaseUrls: string[];
|
||||
|
||||
async getPlusRequestService() {
|
||||
const installInfo: SysInstallInfo = await this.sysSettingsService.getSetting(SysInstallInfo);
|
||||
const subjectId = await this.getSubjectId();
|
||||
return new PlusRequestService({
|
||||
plusServerBaseUrls: this.plusServerBaseUrls,
|
||||
subjectId: installInfo.siteId,
|
||||
subjectId,
|
||||
});
|
||||
}
|
||||
|
||||
async getSubjectId() {
|
||||
const installInfo: SysInstallInfo = await this.sysSettingsService.getSetting(SysInstallInfo);
|
||||
return installInfo.siteId;
|
||||
}
|
||||
|
||||
async requestWithoutSign(config: any) {
|
||||
const plusRequestService = await this.getPlusRequestService();
|
||||
return await plusRequestService.requestWithoutSign(config);
|
||||
|
||||
Reference in New Issue
Block a user