Skip to content

Commit

Permalink
♻️ refactor(genshin_cos): 重构代码以提高可维护性和扩展性
Browse files Browse the repository at this point in the history
- 优化了 cos 类型处理逻辑,使用字典映射替代多个 if-else 语句
- 重构了 send_images 函数,简化了图片获取和发送流程
- 更新了类型注解,使用 built-in 的 dict 和 tuple 替代 Dict 和 Tuple
- 优化了配置文件读写逻辑,提高了代码的健壮性
  • Loading branch information
Cvandia committed Nov 13, 2024
1 parent 3f76ce0 commit 0ed8c7e
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 186 deletions.
Loading

0 comments on commit 0ed8c7e

Please sign in to comment.