From fc2cc2f2bb7287d5790ee6a22a771ce0ffbc9b4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Thu, 16 Apr 2026 16:43:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=9B=E4=BA=8B=E7=99=BB=E5=BD=95=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YD_Event.Application/Client/OAuthController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YD_Event.Application/Client/OAuthController.cs b/YD_Event.Application/Client/OAuthController.cs index 573d39d..76ad40e 100644 --- a/YD_Event.Application/Client/OAuthController.cs +++ b/YD_Event.Application/Client/OAuthController.cs @@ -58,7 +58,7 @@ public class OAuthController : IDynamicApiController if (!isRegistered) { - if (string.IsNullOrEmpty(appUser.Password)) + if (appUser == null || string.IsNullOrEmpty(appUser.Password)) { throw Oops.Bah("未注册过账户"); }