Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 米游社手机号登录时,不点击获取直接输入验证码确认会闪退 #2058

Closed
4 tasks done
gingerbreap opened this issue Oct 18, 2024 · 4 comments
Closed
4 tasks done
Labels
area-UserPanel 用户面板 已完成 This issue is completed
Milestone

Comments

@gingerbreap
Copy link

检查清单

  • 我已阅读 Snap Hutao 文档中的常见问题常见程序异常,我的问题没有在文档中得到解答
  • 我知道文档站的导航栏中有搜索功能,且已经搜索过相关关键词
  • 我的问题不是已完成的问题也不是一个别人已发布的重复的问题

Windows 版本

19045.5011

Snap Hutao 版本

1.11.4.0

设备 ID

14830EE68FA045C15190502B8F041DCE

问题分类

米游社账号面板

发生了什么?

在已有验证码的情况下(例如,点击获取验证码按钮后不小心点击取消按钮,再次打开后直接输入手机号及验证码),点击确认后无论验证码正确与否均会导致程序闪退,报错结果如下

Snipaste_2024-10-18_00-04-03

你期望发生的行为?

如支持在未获取验证码时直接请求登录,则无视验证码请求状态直接发送登录请求;如不支持,则在未获取验证码时屏蔽登录按钮点击。此外,由于取消按钮在此界面为高亮按钮,希望可以使得该按钮不做高亮,将登录按钮设置为高亮。

最后一步

  • 我认为上述的描述已经足以详细,以允许开发人员能复现该问题
@gingerbreap gingerbreap added BUG priority:none Priority not set labels Oct 18, 2024
@dgp-bot dgp-bot bot moved this to 备忘录 in Snap Hutao Development Oct 18, 2024
@dgp-bot
Copy link

dgp-bot bot commented Oct 18, 2024

device_id: 14830EE68FA045C15190502B8F041DCE

Exception Data:
----------------------------------------
System.ArgumentNullException: Value cannot be null. (Parameter 'provider.ActionType')
   at System.ArgumentNullException.Throw(String paramName)
   at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName)
   at Snap.Hutao.Web.Hoyolab.Passport.PassportClient2.LoginByMobileCaptchaAsync(IPassportMobileCaptchaProvider provider, CancellationToken token) in C:\Users\Public\appveyor\Snap.Hutao-78xwnn2p82h7pewu\src\Snap.Hutao\Snap.Hutao\Web\Hoyolab\Passport\PassportClient2.cs:line 108
   at Snap.Hutao.ViewModel.User.UserViewModel.LoginByMobileCaptchaAsync() in C:\Users\Public\appveyor\Snap.Hutao-78xwnn2p82h7pewu\src\Snap.Hutao\Snap.Hutao\ViewModel\User\UserViewModel.cs:line 183
   at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()
Exception Data:
----------------------------------------
System.ArgumentNullException: Value cannot be null. (Parameter 'provider.ActionType')
   at System.ArgumentNullException.Throw(String paramName)
   at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName)
   at Snap.Hutao.Web.Hoyolab.Passport.PassportClient2.LoginByMobileCaptchaAsync(IPassportMobileCaptchaProvider provider, CancellationToken token) in C:\Users\Public\appveyor\Snap.Hutao-78xwnn2p82h7pewu\src\Snap.Hutao\Snap.Hutao\Web\Hoyolab\Passport\PassportClient2.cs:line 108
   at Snap.Hutao.ViewModel.User.UserViewModel.LoginByMobileCaptchaAsync() in C:\Users\Public\appveyor\Snap.Hutao-78xwnn2p82h7pewu\src\Snap.Hutao\Snap.Hutao\ViewModel\User\UserViewModel.cs:line 183
   at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()
Exception Data:
----------------------------------------
System.ArgumentNullException: Value cannot be null. (Parameter 'provider.ActionType')
   at System.ArgumentNullException.Throw(String paramName)
   at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName)
   at Snap.Hutao.Web.Hoyolab.Passport.PassportClient2.LoginByMobileCaptchaAsync(IPassportMobileCaptchaProvider provider, CancellationToken token) in C:\Users\Public\appveyor\Snap.Hutao-78xwnn2p82h7pewu\src\Snap.Hutao\Snap.Hutao\Web\Hoyolab\Passport\PassportClient2.cs:line 108
   at Snap.Hutao.ViewModel.User.UserViewModel.LoginByMobileCaptchaAsync() in C:\Users\Public\appveyor\Snap.Hutao-78xwnn2p82h7pewu\src\Snap.Hutao\Snap.Hutao\ViewModel\User\UserViewModel.cs:line 183
   at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()

@dgp-bot dgp-bot bot added the area-UserPanel 用户面板 label Oct 18, 2024
@dgp-bot
Copy link

dgp-bot bot commented Oct 18, 2024

d1b4b48 已修复此问题

@dgp-bot dgp-bot bot added 已完成 This issue is completed 等待发布 This issue fix is going to be applied in the next release and removed priority:none Priority not set labels Oct 18, 2024
@dgp-bot dgp-bot bot moved this from 备忘录 to 完成 in Snap Hutao Development Oct 18, 2024
@dgp-bot dgp-bot bot added this to the 1.11.5 milestone Oct 20, 2024
@dgp-bot
Copy link

dgp-bot bot commented Oct 20, 2024

包含解决该问题的程序版本 1.11.5 已发布。

@dgp-bot dgp-bot bot removed the 等待发布 This issue fix is going to be applied in the next release label Oct 20, 2024
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topic.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-UserPanel 用户面板 已完成 This issue is completed
Projects
Development

No branches or pull requests

1 participant