refactor: 移除钉钉告警相关代码

- 删除了 main.go 中调用 warning 函数的代码行
- 移除了 warning.go 文件中的所有钉钉告警相关代码
- 保留了 warning 函数的注释,改为 warning_ding
- 删除了 denyip 文件(二进制文件差异)
This commit is contained in:
2025-07-22 12:11:09 +08:00
parent 693874974d
commit 60778c4436
3 changed files with 2 additions and 2 deletions

BIN
denyip

Binary file not shown.

View File

@@ -326,7 +326,7 @@ func RunMainProcess() { // 主进程逻辑
AddIPSet(IPSET_NAME, ipStr) // 添加 IP 到 ipset 集合
// 钉钉告警,废弃!钉钉可能限制文本长度,和发送次数!
// warning(ipStr, position) // 警告 IP 地域
// warning_ding(ipStr, position) // 警告 IP 地域
} else {
log.Printf("\033[33m %s 离线库为国外, API 判断为国内, 标记为已处理\033[0m\n", ipStr)

View File

@@ -59,7 +59,7 @@ func sendDingTalkMessage(title, text string) {
}
}
func warning(ipStr string, position string) {
func warning_ding(ipStr string, position string) {
WarningListLock.Lock()
defer WarningListLock.Unlock()