Commit Graph

27 Commits

Author SHA1 Message Date
molanp
977f0b13b3
fix(zhenxun): 修复 HTTP 客户端初始化逻辑错误 (#2014)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
- 将 httpx.AsyncClient 实例化逻辑封装到 get_async_client 函数中
- 统一全局客户端和测试环境客户端的创建方式
- 提高代码复用性和可维护性
2025-08-11 10:18:15 +08:00
Rumio
99eacdfc12
feat(http_utils): 优化AsyncHttpx类,解决并发下载问题 (#1968)
- 分离客户端配置和请求参数,避免不必要的临时客户端创建
- 添加可选下载进度条,解决并发下载时Progress实例冲突
- 优化 AsyncHttpx 方法文档字符串

Co-authored-by: webjoin111 <455457521@qq.com>
2025-07-11 10:13:02 +08:00
Rumio
1c5f66beee
feat(http_utils): 重构网络请求工具链,增强稳定性与易用性 (#1951)
*  feat(http_utils): 重构网络请求工具链,增强稳定性与易用性

🔧 HTTP工具优化:
  • 全局httpx.AsyncClient管理,提升连接复用效率
  • AsyncHttpx类重构,支持临时客户端和配置覆盖
  • 新增JSON请求方法(get_json/post_json),内置重试机制
  • 兼容httpx>=0.28.0版本

🔄 重试机制升级:
  • Retry装饰器重构,提供simple/api/download预设
  • 支持指数退避、条件重试和自定义失败处理
  • 扩展异常覆盖范围,提升网络容错能力

🏗️ 架构改进:
  • 新增AllURIsFailedError统一异常处理
  • 浏览器工具模块化,提升代码组织性

* 🚨 auto fix by pre-commit hooks

* 🎨 代码格式化

* 🐛 测试修复

---------

Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
Co-authored-by: HibiKier <775757368@qq.com>
2025-07-03 17:39:13 +08:00
molanp
96db5bf2a5
向后兼容httpx传参方式 (#1930) 2025-06-20 16:53:05 +08:00
molanp
d6d54175f6
🚑 修复代理设置问题 (#1928) 2025-06-17 19:51:24 +08:00
molanp
10e883f0ca
🚑 修复代理问题 (#1927) 2025-06-17 18:27:46 +08:00
molanp
ee9a2a6cb0
🚑 修复 httpx 初始化传参错误 (#1926) 2025-06-17 03:58:10 +08:00
molanp
62b0b02466
增强 httpx 兼容性 (#1915)
* 增强 httpx 兼容性

* 顺便修了对tx图片服务器的ssl错误

* 🚨 auto fix by pre-commit hooks

* 修复通不过检查的问题

* 🚨 auto fix by pre-commit hooks

* 适配 httpx 0.28.0+版本

* 🚨 auto fix by pre-commit hooks

* 🎨 代码格式化

*  代码优化

* 🎨 代码格式化

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
2025-06-16 11:14:19 +08:00
尝生
46a652bb27
修复插件商店获取插件信息提示302异常 (#1904)
* 由于调用加速地址的时候状态码为302会被认为正常返回,但是所有的加速地址又没有调用完毕导致的插件商店经常报错302异常

* 优化异常代码行

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-06-09 14:41:19 +08:00
HibiKier
aef2597b46
添加自动同意群组请求 (#1848)
*  添加自动同意群组请求

*  Add nonebot-plugin-waiter

---------

Co-authored-by: BalconyJH <balconyjh@gmail.com>
2025-02-12 23:32:46 +08:00
HibiKier
4ed1791b30
🐛 修复添加插件依赖更新 (#1837)
* 🐛 修复添加插件依赖更新

* 🔧 修改插件依赖安装命令为使用poetry运行pip

* 🐛 修复群组入群与退群提示

* 🐛 修复群组踢出用户提醒

* 🎨 代码优化

* 🎨 群欢迎迁移优化

* 🩹 精确webui调用统计

* 🚨 auto fix by pre-commit hooks

* 🐛 修复测试

* 🎨 fix pre-commit.ci

* 🎨  fix pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-02-03 21:23:14 +08:00
HibiKier
ec70144d7e
资源下载分离 (#1814)
* 🚀 资源文件单独下载,分离被动任务初始化

* 🔥 移除resources文件夹

* 🚀 优化版本更新逻辑,增加资源下载异常处理

* 🚀 增加资源下载失败异常处理及提示信息

* 🚀 增加资源下载选项及异常处理优化

* 🚀 移除空ID检查及资源更新条件处理

*  简易配置中未加载的配置将被移除

* 🐛 测试更新

*  修复更新完成消息格式

---------

Co-authored-by: Flern <cb56ec362bbbfb5272eb941281299d8d-qq_connect@git.osc>
2025-01-06 11:32:56 +08:00
BalconyJH
bc5a9c4fcc
Develop: 完全使用 ruff 替代 isort 与 black (#1757)
* 🚨 完全使用 ruff 替代 isort 与 black

* 🚨 ruff lint&format
2024-12-10 19:49:11 +08:00
HibiKier
b2da0a902d 🎨 playwright添加cookie参数 2024-11-07 13:38:20 +08:00
HibiKier
92b0c6b4bf 🎨 http_utils代码优化 2024-10-19 23:02:05 +08:00
HibiKier
3d3a2a5f7f
部分功能适配QQ BOT (#1701) 2024-10-18 18:57:55 +08:00
AkashiCoin
207f947a1c
🐛 fix(http_utils): 流式下载Content-Length错误 (#1647) 2024-09-22 17:12:21 +08:00
AkashiCoin
51c010daa8
🎈 perf(github_utils): 支持github url下载遍历 (#1632)
* 🎈 perf(github_utils): 支持github url下载遍历

* 🐞 fix(http_utils): 修复一些下载问题

* 🦄 refactor(http_utils): 部分重构

* chore(version): Update version to v0.2.2-e6f17c4

---------

Co-authored-by: AkashiCoin <AkashiCoin@users.noreply.github.com>
2024-09-16 20:08:42 +08:00
HibiKier
3b4c206a24 重构自检ui 2024-09-07 01:25:42 +08:00
AkashiCoin
ce97dedc5f 🐛 文件下载逻辑修改 2024-09-03 17:13:31 +08:00
AkashiCoin
8615eb20d4 添加github镜像 2024-09-03 16:52:11 +08:00
HibiKier
f69253616e 🎨 签到优化与配置修改 2024-08-24 17:06:23 +08:00
BalconyJH
f578123acb
🐛 为 'get_browser()' 添加缺少的 'await' 关键字以确保正确等待异步函数执行 2024-08-22 08:53:33 +08:00
HibiKier
ec24bdf64f 🎨 代码优化 2024-08-15 20:27:19 +08:00
HibiKier
e0a3fe526e 🎨 统一发送格式 2024-08-10 02:25:04 +08:00
HibiKier
f03604d3bc feat: 我有一个朋友 2024-05-16 19:54:30 +08:00
HibiKier
eb0572ea77 feat: 更新内置插件 2024-02-25 03:18:34 +08:00