dd/fn逻辑.md
2026-01-22 19:08:25 +08:00

29 lines
1.1 KiB
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

1.CronFreenodeCrawl :: 爬各来源,根据crawl_freenode,存到public/freenode/from/xxx文件。
数据:
v2ray只是base64_decode一下,便于查看
clash没动,纯原始数据
动机:
保存一份原始数据,合理
逻辑:
如果没有crawl到,就直接忽视,pool是直接找file_real
找到就更新file_real
也就意味着,即便当天没更新到,pool也会直接找file_real最后有效更新的
2.CronFreenodePool :: 读各来源文件,根据crawl_freenode,存到freenode_pool。
动机:
合并与格式化,成为标准通用数据
3.CronFreenodeMerge :: 读freenode_pool,存到public/freenode/merge/base/xxx文件。
动机:
各site定制化,生成最终fn文件
辅助:
CronFreenodeFile :: 辅助处理文件相关
CronFreenodeLog :: 辅助处理日志相关,暂时可能没用上
CronFreenodeWatch :: 写了一半没用上,不知道干嘛了
CronFreenodeSync :: 处理同步cron
测试:
master :: /cron#test__h 6,就可以了,目前整套逻辑都在h6里