将 flag / type 请求参数用于判断客户端类型并优先于 User-Agent#112
Open
QwQlinkie wants to merge 1 commit intoperfect-panel:masterfrom
Open
将 flag / type 请求参数用于判断客户端类型并优先于 User-Agent#112QwQlinkie wants to merge 1 commit intoperfect-panel:masterfrom
QwQlinkie wants to merge 1 commit intoperfect-panel:masterfrom
Conversation
…flag/type over User-Agent
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.
feat(subscribe): enhance client identification logic by prioritizing flag/type over User-Agent
习惯上在订阅 URl 中添加
flag或type参数用于客户端判断, internal/handler/subscribe.go:25-26 中解析了相关参数但从未用于客户端选择, internal/logic/subscribe/subscribeLogic.go:49-74 中的客户端匹配逻辑只看了 User-Agent 请求头,不看任何请求参数此 PR 在
subscribeLogic.go中完善了客户端匹配逻辑,将Flag和Type也用于客户端判断,并优先于 User-Agent