From 34620473415b232ebd7f8ab2506dc80768965f74 Mon Sep 17 00:00:00 2001 From: Janie <109517022+Janie06@users.noreply.github.com> Date: Wed, 15 Feb 2023 18:19:02 +0800 Subject: [PATCH] =?UTF-8?q?[WHAT]=20=E7=99=BB=E5=85=A5=E3=80=81=E5=BF=98?= =?UTF-8?q?=E8=A8=98=E5=AF=86=E7=A2=BC=E5=88=A4=E6=96=B7=E6=9C=83=E5=93=A1?= =?UTF-8?q?=E7=8B=80=E6=85=8B=E4=B8=A6=E5=82=B3=E5=9B=9Eerror=20[WHY]=20?= =?UTF-8?q?=E9=96=8B=E7=99=BC=20ShowEasy=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EuroTran/EasyBL.WEBAPP/ShowEasy/SignupService.cs | 12 +++++++++--- EuroTran/EasyBL.WEBAPP/ShowEasy/SystemService.cs | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/EuroTran/EasyBL.WEBAPP/ShowEasy/SignupService.cs b/EuroTran/EasyBL.WEBAPP/ShowEasy/SignupService.cs index cf6fdae..cffc18f 100644 --- a/EuroTran/EasyBL.WEBAPP/ShowEasy/SignupService.cs +++ b/EuroTran/EasyBL.WEBAPP/ShowEasy/SignupService.cs @@ -353,10 +353,16 @@ namespace EasyBL.WEBAPP.SYS var Mailto = db.Queryable().First(x => x.Email == Email); - if (Mailto.Status != "1") + if (Mailto == null) + { + sError = @"帳號或密碼不正確"; //帳號或密碼不正確 + break; + } + + if (Mailto.Status != "1") { - sError = @"該帳號未認證或已註銷"; //該帳號無效 + sError = Mailto.Status; //該帳號無效 break; } @@ -381,7 +387,7 @@ namespace EasyBL.WEBAPP.SYS var bSend = new MailService(sOrgID, true).MailFactory(oEmail, out sError); srm = new SuccessResponseMessage(null, null); - srm.DATA.Add(BLWording.REL, Mailto.Email); + srm.DATA.Add(BLWording.REL, Mailto); } while (false); } diff --git a/EuroTran/EasyBL.WEBAPP/ShowEasy/SystemService.cs b/EuroTran/EasyBL.WEBAPP/ShowEasy/SystemService.cs index 75a98f0..5a67f8b 100644 --- a/EuroTran/EasyBL.WEBAPP/ShowEasy/SystemService.cs +++ b/EuroTran/EasyBL.WEBAPP/ShowEasy/SystemService.cs @@ -149,7 +149,7 @@ namespace EasyBL.WEBAPP.SYS if (oUser.Status != @"1") { errorStaus = (int)StatusCodeEnum.Unauthorized; - sError = @"該帳號未啓用"; //該帳號無效 + sError = oUser.Status; //該帳號無效 break; }