fix(core): 识别uid替换默认用户名#3199
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- 替换genshin.uid()为ocrUID()函数实现OCR识别UID功能 - 添加版本兼容性检查,确保BGI版本满足最低要求0.60.2-alpha.4 - 新增ImageRegionSafe类用于安全释放图像资源 - 实现OCR识别UID的完整流程,包括区域捕获和文本提取 - 添加版本比较工具函数支持预发布版本标识 - 修改manifest.json配置,更新BGI版本依赖要求 chore(version): 更新插件版本号 - 将 bgi_version 从 0.60.2 更新为 0.60.2-alpha.4 - 保持 manifest 版本格式的一致性 - 为后续 alpha 测试准备版本标识 fix(genshin): 修复用户名获取异步处理问题 - 将getUsername函数改为async函数以支持异步操作 - 添加await关键字确保genshin.uid()正确执行 - 修复else语句前后的空格格式问题 - 在调用getUsername时添加await确保异步等待 fix(login): 修复用户名验证逻辑错误 - 调整了 UID 检查的执行顺序,确保在 UID 为 0 时才进行用户名验证 - 修复了用户名为空或格式不正确时的默认值设置 - 优化了 UID 不为 0 时直接使用 UID 作为用户名的逻辑 - 保持了原有的用户名格式验证规则(中文/英文/数字,长度1-20) fix(core): 修复用户名验证逻辑并更新作者信息 - 当用户名违规时优先使用原神UID作为用户名,避免直接使用默认值 - 添加了对genshin.uid()函数的调用以获取用户唯一标识 - 在manifest.json中将版本从6.5.0更新到6.5.1 - 将bgi_version从0.54.0更新到0.60.2 - 在作者列表中添加了新贡献者云端客的信息 - 保持了原有的用户名验证规则不变
- 修正了版本检查条件判断错误 - 确保只有在版本满足要求时才获取UID - 防止不兼容版本下UID获取失败的问题
No description provided.