fix: 修复 damo_balance 引号语法错误及 chatai bleach 缺失依赖

- damo_balance/__init__.py: 将外层字符串改为单引号,消除内嵌双引号引起的 SyntaxError
- chatai/screenshot.py: bleach 改为 try/except 可选导入,无 bleach 时降级跳过 HTML 净化
- requirements.txt: 补充 openai>=1.0.0 与 pyppeteer>=1.0.2 依赖声明
This commit is contained in:
2026-05-11 22:43:27 +08:00
parent 3db17fc08b
commit 1b484d7fda
3 changed files with 12 additions and 3 deletions

View File

@@ -69,7 +69,7 @@ async def handle_captcha(event: MessageEvent, state: T_State, captcha: str = Arg
spider = state.get("spider")
if not spider:
await check_balance.finish("会话异常,请重新发送"大漠余额"")
await check_balance.finish('会话异常,请重新发送"大漠余额"')
try:
if spider.login(USERNAME, PASSWORD, captcha):