perf: cname 域名映射记录可读性优化

This commit is contained in:
xiaojunnuo
2024-11-01 18:09:32 +08:00
parent 7ad4b55ee0
commit b1117ed54a
17 changed files with 190 additions and 35 deletions

View File

@@ -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);