Repository navigation
feat(parcel_track): 尾程日报按区域分块 + 取数可靠性加固 - #351
Open
Jack-wq-ops wants to merge 1 commit into
Open
Jack-wq-ops wants to merge 1 commit into
Jack-wq-ops wants to merge 1 commit into
Conversation
- 钉钉卡片按 美东/美中/波兰/其他 分区,每区显示「总单数(已查/停放)」, 全停放的仓也列出;避免「美东 72」被误读为一周只有 72 单(实际 324 单/247 停放)。 - 通途登录页密码框改版修复:input[name=password] 命中的是隐藏的 passwordMd5, 改为 input[type=password](tongtu_login_ocr / tongtu_export_ocr);登录前先判 会话是否仍有效,登录页等待 15s→30s 且超时优雅返回。 - 取数前加载 .env,失败告警不再因 KeyError: DINGTALK_SECRET 静默。 - 数据新鲜度闸门:退回旧输入时标明真实区间(_stale + 标题),不再冒充当天。 - 取数失败自动重试 1 次(间隔 60s)。 - 测试 49 passed;真机实测 10-29~11-04、11-10~11-16 推送成功。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
input[name="password"]→input[type="password"])。.env(失败告警不再因KeyError: DINGTALK_SECRET静默);新增数据新鲜度闸门(旧数据不冒充当天);取数失败自动重试 1 次。背景
2026-10-20 起通途每日取数连续失败,日报一直用 10/13–10/19 的旧数据。根因是登录页把可见密码框改成
id="password"(name="password"变成隐藏的passwordMd5),原选择器命中隐藏框、永远等不到 visible。同时修正区域口径:此前卡片只统计「已分类」票数,导致「美东 72」被误读为一周只有 72 单——实际该区一周 324 单,其中 247 单为停放(GOFO/TikTok/USPS 等不查询)。
Test plan
uv run python -m pytest parcel_track/tests -q→ 49 passed🤖 Generated with Claude Code