fix: update privacy policy URL handling logic#75
Merged
Conversation
1. Restructured privacy policy URL generation to handle community and commercial versions separately 2. Simplified URL construction by removing region suffix for community version 3. Added direct Chinese/English URLs for community version (deepin.org) 4. Maintained existing region-based URLs for commercial version (uniontech.com) 5. Improved code readability by removing redundant static lists and simplifying conditionals The changes ensure proper privacy policy links are generated for different system types and regions, while making the code more maintainable and consistent with the actual privacy policy documentation locations. fix: 更新隐私政策URL处理逻辑 1. 重构隐私政策URL生成逻辑,区分社区版和商业版处理 2. 简化社区版URL构造,不再使用区域后缀 3. 为社区版添加直接的中文/英文URL(deepin.org) 4. 商业版保持原有的基于区域的URL(uniontech.com) 5. 通过移除冗余静态列表和简化条件判断提高代码可读性 这些修改确保为不同系统类型和区域生成正确的隐私政策链接,同时使代码更易于 维护并与实际隐私政策文档位置保持一致。 pms: Bug-317131
deepin pr auto review关键摘要:
是否建议立即修改: |
mhduiy
approved these changes
May 20, 2025
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mhduiy, xionglinlin The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
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.
The changes ensure proper privacy policy links are generated for different system types and regions, while making the code more maintainable and consistent with the actual privacy policy documentation locations.
fix: 更新隐私政策URL处理逻辑
这些修改确保为不同系统类型和区域生成正确的隐私政策链接,同时使代码更易于
维护并与实际隐私政策文档位置保持一致。
pms: Bug-317131