根据抽卡记录中的角色随机选择抽卡页顶部长条名片背景#14
Open
Ice9Coffee wants to merge 3 commits into
Open
Conversation
Owner
|
目前代码里的card_long 的格式并不是一一对应角色的; |
Author
|
ok,看起来gpt确实忽略了这一点。 能否根据目前的资源名推断出来映射关系?或者暂且手动打表? |
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.
变更说明
本 PR 调整了“抽卡记录”图片顶部用户名片的长条背景选择逻辑。
此前:
card_long_id现在:
item_id去重后,随机选择一个角色作为card_long_idcard_long_id对应素材不存在,也会安全回退到原有默认随机背景逻辑具体逻辑
item_id.isdigit()的条目视为角色影响范围
兼容性
保留了完整兜底逻辑: