mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
chore: bindUrl2初步
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user