perf: 站点监控增加是否自动同步IP开关

This commit is contained in:
xiaojunnuo
2026-01-09 01:20:04 +08:00
parent 1a29541140
commit 52689049ae
6 changed files with 24 additions and 11 deletions
@@ -237,7 +237,12 @@ export class SiteInfoService extends BaseService<SiteInfoEntity> {
logger.error("send notify error", e);
}
};
await this.siteIpService.syncAndCheck(site, retryTimes,onFinished);
if (!site.ipSyncAuto) {
await this.siteIpService.checkAll(site, retryTimes,onFinished);
}else{
await this.siteIpService.syncAndCheck(site, retryTimes,onFinished);
}
}
/**