mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-26 06:30:04 +08:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cda0393870 | ||
|
|
7bcf9bb596 |
+1
-1
@@ -1 +1 @@
|
|||||||
__version__: v0.2.4-977f0b1
|
__version__: v0.2.4-3deffcb
|
||||||
|
|||||||
@@ -416,7 +416,7 @@ class StoreManager:
|
|||||||
update_success_list = []
|
update_success_list = []
|
||||||
result = "--已更新{}个插件 {}个失败 {}个成功--"
|
result = "--已更新{}个插件 {}个失败 {}个成功--"
|
||||||
logger.info(f"尝试更新全部插件 {plugin_name_list}", LOG_COMMAND)
|
logger.info(f"尝试更新全部插件 {plugin_name_list}", LOG_COMMAND)
|
||||||
for plugin_info in all_plugin_list:
|
for plugin_info in plugin_list:
|
||||||
try:
|
try:
|
||||||
db_plugin_list = await cls.get_loaded_plugins("module", "version")
|
db_plugin_list = await cls.get_loaded_plugins("module", "version")
|
||||||
suc_plugin = {p[0]: (p[1] or "Unknown") for p in db_plugin_list}
|
suc_plugin = {p[0]: (p[1] or "Unknown") for p in db_plugin_list}
|
||||||
|
|||||||
@@ -76,9 +76,7 @@ async def handle_view(
|
|||||||
await schedule_cmd.finish("没有找到任何相关的定时任务。")
|
await schedule_cmd.finish("没有找到任何相关的定时任务。")
|
||||||
|
|
||||||
img = await presenters.format_schedule_list_as_image(
|
img = await presenters.format_schedule_list_as_image(
|
||||||
schedules=schedules,
|
schedules=schedules, title=title, current_page=page.result
|
||||||
title=title,
|
|
||||||
current_page=page.result if page.available else 1,
|
|
||||||
)
|
)
|
||||||
await MessageUtils.build_message(img).send(reply_to=True)
|
await MessageUtils.build_message(img).send(reply_to=True)
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ async def _():
|
|||||||
"将默认使用新版 'proxy' 参数语法。"
|
"将默认使用新版 'proxy' 参数语法。"
|
||||||
)
|
)
|
||||||
|
|
||||||
_client = get_async_client(
|
_client = httpx.AsyncClient(
|
||||||
headers=get_user_agent(),
|
headers=get_user_agent(),
|
||||||
follow_redirects=True,
|
follow_redirects=True,
|
||||||
**client_kwargs,
|
**client_kwargs,
|
||||||
@@ -90,7 +90,7 @@ def get_client() -> AsyncClient:
|
|||||||
raise RuntimeError("全局 httpx.AsyncClient 未初始化,请检查启动流程。")
|
raise RuntimeError("全局 httpx.AsyncClient 未初始化,请检查启动流程。")
|
||||||
# 在测试环境中创建临时客户端
|
# 在测试环境中创建临时客户端
|
||||||
logger.warning("在测试环境中创建临时HTTP客户端", "HTTPClient")
|
logger.warning("在测试环境中创建临时HTTP客户端", "HTTPClient")
|
||||||
_client = get_async_client(
|
_client = httpx.AsyncClient(
|
||||||
headers=get_user_agent(),
|
headers=get_user_agent(),
|
||||||
follow_redirects=True,
|
follow_redirects=True,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user