chore: bindurl 提示消除

v2-dev-buy
xiaojunnuo 2025-11-05 00:08:59 +08:00
parent bcac810f71
commit 0c99f41bd9
1 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,6 @@
import { ALL, Body, Controller, Inject, Post, Provide } from '@midwayjs/core'; import { ALL, Body, Controller, Inject, Post, Provide } from '@midwayjs/core';
import { BaseController, PlusService, SysInstallInfo, SysSettingsService } from '@certd/lib-server'; import { BaseController, PlusService, SysInstallInfo, SysSettingsService } from '@certd/lib-server';
import { logger } from '@certd/basic';
/** /**
*/ */
@ -31,8 +32,13 @@ export class SysPlusController extends BaseController {
installInfo.bindUrl = url; installInfo.bindUrl = url;
await this.sysSettingsService.saveSetting(installInfo); await this.sysSettingsService.saveSetting(installInfo);
//重新验证配置 //重新验证vip
await this.plusService.verify(); try{
await this.plusService.verify();
}catch(e){
logger.error(`验证配置失败:${e}`);
}
return this.ok(true); return this.ok(true);
} }