mirror of https://github.com/certd/certd
chore: comm trial
parent
94cbeba495
commit
1b56c0f191
|
@ -111,12 +111,15 @@ export class PlusService {
|
||||||
return res.accessToken;
|
return res.accessToken;
|
||||||
}
|
}
|
||||||
|
|
||||||
async getVipTrial() {
|
async getVipTrial(vipType= "plus") {
|
||||||
await this.register();
|
await this.register();
|
||||||
const plusRequestService = await this.getPlusRequestService();
|
const plusRequestService = await this.getPlusRequestService();
|
||||||
const res = await plusRequestService.request({
|
const res = await plusRequestService.request({
|
||||||
url: '/activation/subject/vip/trialGet',
|
url: '/activation/subject/vip/trialGet',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
data:{
|
||||||
|
vipType
|
||||||
|
}
|
||||||
});
|
});
|
||||||
if (res.license) {
|
if (res.license) {
|
||||||
await this.updateLicense(res.license);
|
await this.updateLicense(res.license);
|
||||||
|
|
|
@ -8,10 +8,10 @@ export async function doActive(form: any) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getVipTrial(vipType:string) {
|
export async function getVipTrial(vipType: string) {
|
||||||
return await request({
|
return await request({
|
||||||
url: "/sys/plus/getVipTrial",
|
url: "/sys/plus/getVipTrial",
|
||||||
method: "post",
|
method: "post",
|
||||||
data: {vipType},
|
data: { vipType },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,8 +38,8 @@ export class SysPlusController extends BaseController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Post('/getVipTrial', { summary: 'sys:settings:edit' })
|
@Post('/getVipTrial', { summary: 'sys:settings:edit' })
|
||||||
async getVipTrial(@Body(ALL) body) {
|
async getVipTrial(@Body("vipType") vipType?:string) {
|
||||||
const res = await this.plusService.getVipTrial();
|
const res = await this.plusService.getVipTrial(vipType);
|
||||||
return this.ok(res);
|
return this.ok(res);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue