mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
chore: ip检查新旧ip变化对比逻辑修复
This commit is contained in:
@@ -93,7 +93,7 @@ export class SiteIpService extends BaseService<SiteIpEntity> {
|
|||||||
if (oldIps.length === ips.length ){
|
if (oldIps.length === ips.length ){
|
||||||
//检查是否有变化
|
//检查是否有变化
|
||||||
const oldIpList = oldIps.map(ip=>ip.ipAddress).sort().join(",")
|
const oldIpList = oldIps.map(ip=>ip.ipAddress).sort().join(",")
|
||||||
const newIpList = ips.filter(ip=>!oldIpList.includes(ip)).sort().join(",")
|
const newIpList = ips.sort().join(",")
|
||||||
if(oldIpList === newIpList){
|
if(oldIpList === newIpList){
|
||||||
//无变化
|
//无变化
|
||||||
hasChanged = false
|
hasChanged = false
|
||||||
|
|||||||
Reference in New Issue
Block a user