perf: 支持全自动匹配部署宝塔网站证书

This commit is contained in:
xiaojunnuo
2026-06-27 00:20:04 +08:00
parent 8abe0daf20
commit 4dff48e807
12 changed files with 193 additions and 79 deletions
@@ -21,7 +21,7 @@ export class CertInfoWildcardDomainCountFix {
},
});
let fixedCount = 0;
for (const item of list) {
for (const item of list as any[]) {
if (!item.domains) {
continue;
}
@@ -112,7 +112,7 @@ export class CommonEabToAcmeAccountFix {
return null;
}
const email = eabAccess.email || `${caType}@common.certd.local`;
const exists = await this.accessService.findOne({
const exists: any = await this.accessService.findOne({
where: {
userId: 0,
projectId: null,
@@ -36,7 +36,7 @@ export class RoleService extends BaseService<RoleEntity> {
}
async getRoleIdsByUserId(id: any) {
const userRoles = await this.userRoleService.find({
const userRoles: any = await this.userRoleService.find({
where: { userId: id },
});
return userRoles.map(item => item.roleId);
@@ -131,7 +131,7 @@ export class RoleService extends BaseService<RoleEntity> {
async delete(id: any) {
const idArr = this.resolveIdArr(id);
//@ts-ignore
const urs = await this.userRoleService.find({ where: { roleId: In(idArr) } });
const urs:any = await this.userRoleService.find({ where: { roleId: In(idArr) } });
if (urs.length > 0) {
throw new Error("该角色已被用户使用,无法删除");
}