过滤锁定日志

This commit is contained in:
13038267101 2023-11-15 11:50:18 +08:00
parent 95f01e66d3
commit ccd91dc0d6
1 changed files with 13 additions and 1 deletions

View File

@ -543,9 +543,21 @@ int hg_scanner::set_server_blacklist_lock()
//优先从机器设备上进行校验
int ret = HGVersion_Islock_(HGVersion_mgr_, snbuffer, &islock);
int islock_file = 0;
ret = get_dev_islock_file(islock_file);
if (islock_file && islock )
{
is_checksum_strat_scan = false;;
return SCANNER_ERR_DEVICE_ISLOCK;
}
if (!islock_file && !islock)
{
is_checksum_strat_scan = true;
return SCANNER_ERR_OK;
}
if (ret != 0) //服务器没有连接到网络
{
ret = get_dev_islock_file(islock_file);
is_checksum_strat_scan = islock_file <= 0 ? true : false; //使用校验码来进行扫描,以后只会使用这种方法进行扫描
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "net is 404 , devs list is:%d\n", islock_file);
}