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 d3f470bf0..89a278bbf 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 @@ -20,6 +20,7 @@ export class PlusService { const subjectId = installInfo.siteId; const bindUrl = installInfo.bindUrl; + const bindUrl2 = installInfo.bindUrl2; const installTime = installInfo.installTime; const saveLicense = async (license: string) => { let licenseInfo: SysLicenseInfo = await this.sysSettingsService.getSetting(SysLicenseInfo); @@ -30,7 +31,7 @@ export class PlusService { await this.sysSettingsService.saveSetting(licenseInfo); }; - return new PlusRequestService({ subjectId, bindUrl, installTime, saveLicense }); + return new PlusRequestService({ subjectId, bindUrl, bindUrl2, installTime, saveLicense }); } async getSubjectId() { @@ -150,6 +151,12 @@ export class PlusService { } } + async getTodayOrderCount () { + await this.register(); + const plusRequestService = await this.getPlusRequestService(); + return await plusRequestService.getOrderCount() + } + async requestWithToken(config: HttpRequestConfig) { const plusRequestService = await this.getPlusRequestService(); const token = await this.getAccessToken(); diff --git a/packages/libs/lib-server/src/system/settings/service/models.ts b/packages/libs/lib-server/src/system/settings/service/models.ts index 993ed6b0c..1b9a8128d 100644 --- a/packages/libs/lib-server/src/system/settings/service/models.ts +++ b/packages/libs/lib-server/src/system/settings/service/models.ts @@ -107,6 +107,7 @@ export class SysInstallInfo extends BaseSettings { siteId?: string; bindUserId?: number; bindUrl?: string; + bindUrl2?: string; accountServerBaseUrl?: string; appKey?: string; }