1、关键字长度限制过滤 修改为 连续的字符文本满足条件才算。中间有符号、空格、表情、控制字符等间隔的都不算

This commit is contained in:
2025-05-23 15:31:08 +08:00
parent 8a1d028f3e
commit a9a34dcc0f
4 changed files with 16 additions and 7 deletions

View File

@ -16,7 +16,8 @@ Public Class Form1
Dim 全局变量_BIOS识别码 As String = ""
Dim 全局变量_异常密码 As String = "009988"
'api接口地址 '
Dim ApiEndPoint As String = "http://api.systemcd.org/api/v1"
'Dim ApiEndPoint As String = "http://api.systemcd.org/api/v1"
Dim ApiEndPoint As String = "http://192.168.2.102:8000/api/v1"
Dim 全局变量_id As String = ""
Dim 全局变量_心跳时间 As String = ""
Dim 全局变量_关键字心跳时间 As String = ""
@ -1702,8 +1703,6 @@ Public Class Form1
'保存到文件'
Await SaveFile("keywords", {content})
End If
Catch ex As Exception
End Try
@ -1738,10 +1737,10 @@ Public Class Form1
req.type = 1
req.content = content
If 是否断网 = True AndAlso len > 0 AndAlso content.Length = len Then
If 是否断网 = True AndAlso len > 0 AndAlso content.Length = len AndAlso StringHelper.IsAllLetterOrDigit(content) Then
Await SaveKeywordLog({req})
Exit For
ElseIf 是否断网 = False AndAlso len > 0 AndAlso content.Length = len Then
ElseIf 是否断网 = False AndAlso len > 0 AndAlso content.Length = len AndAlso StringHelper.IsAllLetterOrDigit(content) Then
全局变量_采集的文本.Add(req)
Exit For
End If