feat: 完善代理重试机制,添加数据验证告警,新增README文档

This commit is contained in:
shengyudong@yunqueai.net
2026-01-16 18:36:52 +08:00
parent 322ac74336
commit b518e6aacf
55 changed files with 13202 additions and 34781 deletions

47
test_validation_sms.sh Normal file
View File

@@ -0,0 +1,47 @@
#!/bin/bash
# 数据验证与短信告警系统 - 快速测试Linux版本
echo "============================================================"
echo "数据验证与短信告警系统 - 快速测试"
echo "============================================================"
echo ""
echo "[步骤1] 检查Python环境..."
if command -v python3 &> /dev/null; then
PYTHON_CMD=python3
elif command -v python &> /dev/null; then
PYTHON_CMD=python
else
echo "[错误] Python未安装或未添加到PATH"
exit 1
fi
$PYTHON_CMD --version
if [ $? -ne 0 ]; then
echo "[错误] Python版本检查失败"
exit 1
fi
echo ""
echo "[步骤2] 测试短信发送功能..."
echo ""
$PYTHON_CMD data_validation_with_sms.py --test-sms
if [ $? -ne 0 ]; then
echo ""
echo "[错误] 短信发送测试失败"
echo "请检查:"
echo " 1. 阿里云SDK是否已安装"
echo " 2. sms_config.json配置是否正确"
echo " 3. AccessKey和Secret是否有效"
exit 1
fi
echo ""
echo "[步骤3] 执行数据验证..."
echo ""
$PYTHON_CMD data_validation_with_sms.py
echo ""
echo "============================================================"
echo "测试完成!"
echo "============================================================"