✨ feat(update): 优化资源更新逻辑,调整更新路径和消息处理

This commit is contained in:
HibiKier
2025-08-05 17:33:42 +08:00
parent 050ef43a44
commit a4a31f1474
3 changed files with 9 additions and 11 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ from bag_users t1
@PriorityLifecycle.on_startup(priority=5)
async def _():
if not ZhenxunRepoManager.check_resources_exists():
await ZhenxunRepoManager.resources_update(branch="test")
await ZhenxunRepoManager.resources_update()
"""签到与用户的数据迁移"""
if goods_list := await GoodsInfo.filter(uuid__isnull=True).all():
for goods in goods_list:
@@ -100,7 +100,6 @@ async def _(
source_str, # type: ignore
zip.result,
)
await MessageUtils.build_message(result).finish(reply_to=True)
except Exception as e:
logger.error("版本更新失败...", "检查更新", session=session, e=e)
await MessageUtils.build_message(f"更新版本失败...e: {e}").finish()