fix: 修复 Windows 扫码登录设备名称为 pc 的问题 - #334
Open
Holden-Cross wants to merge 1 commit into
Open
Holden-Cross wants to merge 1 commit into
Holden-Cross wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
改动类型
是否包含破坏性变更
改动说明
修复 Windows 下网易云扫码登录后,官方 App 的登录设备管理中终端名称显示为
pc的问题。扫码登录成功并保存登录凭据后,异步调用设备名称上报接口,名称格式为
用户名 的 计算机名,例如admin 的 DESKTOP-XXXXXX,保留中文和空格。该方法来自 PR #260上报使用本次登录的凭据及设备身份,不修改协议中的
os: "pc"。上报失败仅记录警告,不影响登录,不自动重试。仅对 Windows 新发生的扫码登录生效。关联 Issue
测试情况
用户名 的 计算机名。自查清单
pnpm format,并确认pnpm typecheck、pnpm lint通过pnpm build:native验证;未手写native/*/index.d.tsdev分支提交