chore: bindUrl2初步

This commit is contained in:
xiaojunnuo
2026-02-02 02:02:58 +08:00
parent 0719f4c99e
commit b4babbe2c7
2 changed files with 9 additions and 1 deletions
@@ -20,6 +20,7 @@ export class PlusService {
const subjectId = installInfo.siteId; const subjectId = installInfo.siteId;
const bindUrl = installInfo.bindUrl; const bindUrl = installInfo.bindUrl;
const bindUrl2 = installInfo.bindUrl2;
const installTime = installInfo.installTime; const installTime = installInfo.installTime;
const saveLicense = async (license: string) => { const saveLicense = async (license: string) => {
let licenseInfo: SysLicenseInfo = await this.sysSettingsService.getSetting(SysLicenseInfo); let licenseInfo: SysLicenseInfo = await this.sysSettingsService.getSetting(SysLicenseInfo);
@@ -30,7 +31,7 @@ export class PlusService {
await this.sysSettingsService.saveSetting(licenseInfo); await this.sysSettingsService.saveSetting(licenseInfo);
}; };
return new PlusRequestService({ subjectId, bindUrl, installTime, saveLicense }); return new PlusRequestService({ subjectId, bindUrl, bindUrl2, installTime, saveLicense });
} }
async getSubjectId() { 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) { async requestWithToken(config: HttpRequestConfig) {
const plusRequestService = await this.getPlusRequestService(); const plusRequestService = await this.getPlusRequestService();
const token = await this.getAccessToken(); const token = await this.getAccessToken();
@@ -107,6 +107,7 @@ export class SysInstallInfo extends BaseSettings {
siteId?: string; siteId?: string;
bindUserId?: number; bindUserId?: number;
bindUrl?: string; bindUrl?: string;
bindUrl2?: string;
accountServerBaseUrl?: string; accountServerBaseUrl?: string;
appKey?: string; appKey?: string;
} }