From 04babbce4a31e27073bc99d372f8c7abb73f79e1 Mon Sep 17 00:00:00 2001 From: yhw0507 Date: Wed, 28 Sep 2022 15:47:47 +0800 Subject: [PATCH] =?UTF-8?q?20220928=E7=99=BB=E5=BD=95=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/API/APIUserService.cs | 3 ++- SGGL/BLL/ZHGL/RealName/SynchroSetService.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/SGGL/BLL/API/APIUserService.cs b/SGGL/BLL/API/APIUserService.cs index f0d2bd8f..e13daf5f 100644 --- a/SGGL/BLL/API/APIUserService.cs +++ b/SGGL/BLL/API/APIUserService.cs @@ -17,7 +17,8 @@ namespace BLL using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) { var getUser = db.Person_Persons.FirstOrDefault(x =>( x.Account == userInfo.Account || x.Telephone == userInfo.Telephone || x.PersonName == userInfo.Account) - && x.Password == Funs.EncryptionPassword(userInfo.Password) && (!x.IsPost.HasValue || x.IsPost == true) && x.RoleIds != null); + && x.Password == Funs.EncryptionPassword(userInfo.Password) && (!x.IsPost.HasValue || x.IsPost == true) + && (x.Account != null || x.PersonId == Const.hfnbdId || x.PersonId == Const.sysglyId)); if (getUser != null) { Model.UserItem newItem = new Model.UserItem(); diff --git a/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs b/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs index 8b131f14..686d588d 100644 --- a/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs +++ b/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs @@ -195,7 +195,7 @@ namespace BLL string clientId = SynchroSet.ClientId; string userName = SynchroSet.UserName; string password = Funs.EncryptionPassword(SynchroSet.Password); - string timestamp = string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now.AddMinutes(-2)); + string timestamp = string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now.AddMinutes(-3)); string sign = Funs.EncryptionPassword(clientId + userName + password + timestamp); var getToken = new {