chore: 优化站点ip检查

This commit is contained in:
xiaojunnuo
2025-05-28 15:49:48 +08:00
parent 41f4617e66
commit 45814ceb49
9 changed files with 71 additions and 11 deletions

View File

@@ -311,4 +311,14 @@ export class SiteInfoService extends BaseService<SiteInfoEntity> {
}
}
async disabledChange(req: { disabled: any; id: any }) {
await this.update({
id: req.id,
disabled: req.disabled,
});
if(!req.disabled){
const site = await this.info(req.id);
await this.doCheck(site)
}
}
}