mirror of
https://ghfast.top/https://github.com/aeroxw/easy-tdx.git
synced 2026-09-12 18:04:16 +08:00
feat(cli): company-info 传板块名自动读完整正文(分块循环 + 多服务器重试)
修复体验问题:此前传板块名仍需用户关心 --offset/--length,太笨拙。 现在传板块名即自动按目录 length 分块循环读取整个板块(单次上限 30720 字节, 大板块如「公司大事」77万字节也能一次读全),--offset/--length 仅传文件名时生效。 - _resolve_filename 返回板块 length,_run_content 分块循环读取完整内容 - 修复分块 offset 推进 bug:原按解码字符串 GBK 重编码计字节,遇 U+FFFD 崩溃; 改为按请求字节数推进(服务器按字节偏移工作) - 修复多服务器目录版本不一致:传板块名未命中时自动重试多个服务器(最多4次) - bump 版本号至 1.15.3
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "easy-tdx"
|
||||
version = "1.15.2"
|
||||
version = "1.15.3"
|
||||
description = "通达信 TCP 协议行情数据客户端,支持在线行情、离线数据读取与写入同步"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
|
||||
Reference in New Issue
Block a user