赛事登录判断

This commit is contained in:
马梓彭 2026-04-16 16:43:11 +08:00
parent 2a38a5a1aa
commit fc2cc2f2bb

View File

@ -58,7 +58,7 @@ public class OAuthController : IDynamicApiController
if (!isRegistered) if (!isRegistered)
{ {
if (string.IsNullOrEmpty(appUser.Password)) if (appUser == null || string.IsNullOrEmpty(appUser.Password))
{ {
throw Oops.Bah("未注册过账户"); throw Oops.Bah("未注册过账户");
} }