chore: comm trial

v2-dev-buy
xiaojunnuo 2025-08-15 00:20:38 +08:00
parent 94cbeba495
commit 1b56c0f191
3 changed files with 8 additions and 5 deletions

View File

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

View File

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