Repository navigation
[6104] 用户窗口适配校园网段特殊文本展示 - #4817
Merged
Merged
Conversation
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.
描述
根据后端
membershipInfo接口返回的campus_network节点信息,适配客户端用户中心弹窗中的特殊文本展示:data.campus_network下的in_campus与institution_name字段。in_campus == true)时,在用户弹窗展示特殊文本:🚀 已连接 [高校名称] 校园网,畅享专属特权(未提供高校名称时自适应为🚀 已连接校园网,畅享专属特权)。未在校园网或未登录时不显示该标签。memberType等持久身份与 VIP 等级。liii.css/liii-night.css中适配高亮样式,开启setWordWrap(true)避免截断。tests/Plugins/Qt/campus_network_test.cpp验证解析与文本格式化边界情况。