fix(route/zsxq): preserve topic ID precision - #22836
Open
gbcdef wants to merge 1 commit into
Open
Conversation
Contributor
Auto ReviewCode Style and Maintainability (rule 26: avoid unnecessary changes outside PR scope)
The |
Contributor
|
Successfully generated as following: http://localhost:1200/zsxq/group/88855458825252 - Failed ❌http://localhost:1200/zsxq/user/2414218251 - Failed ❌ |
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.
Involved Issue / 该 PR 相关 Issue
N/A
Example for the Proposed Route(s) / 路由地址示例
New RSS Route Checklist / 新 RSS 路由检查表
PuppeteerNote / 说明
Knowledge Planet returns 17-digit
topic_idvalues as JSON numbers. The default JavaScript parser rounds values beyondNumber.MAX_SAFE_INTEGER, which corrupts feed item links and GUIDs.This change parses the raw ZSXQ response with the existing
json-bigintdependency and stores large integers as strings, preserving exact topic links. It also adds a regression test for55522458445228254and corrects the topics response type.Validation:
pnpm vitest run lib/utils/got.test.tspnpm build:routes