SakuraFrp 自动签到(main + sakura_frp_auto_check + SakuraFrpQiandao),已排除 .env 与日志

This commit is contained in:
RRRosmontis
2026-08-27 21:43:38 +08:00
commit 2a9f96fb18
21 changed files with 2209 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
from config import Config
from automation import CheckInAutomation
import logging
logger = logging.getLogger(__name__)
def main():
"""主函数"""
try:
# 加载配置
config = Config.from_env()
logger.info(f"使用账户: {config.sakurafrp_user}")
# 执行自动签到
automation = CheckInAutomation(config)
automation.run()
except ValueError as e:
logger.error(f"配置错误: {e}")
except Exception as e:
logger.error(f"程序执行失败: {e}", exc_info=True)
if __name__ == "__main__":
main()