From 90b4e7353acc5895cc722b6b17dcc4fe7cd4bb0c Mon Sep 17 00:00:00 2001 From: wjn Date: Fri, 2 Aug 2024 10:36:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=AF=86=E7=A0=81123456?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/Api/UserController.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/APT.MicroApi/APT.FM.WebApi/Controllers/Api/UserController.cs b/APT.MicroApi/APT.FM.WebApi/Controllers/Api/UserController.cs index 65ea490..5c8e793 100644 --- a/APT.MicroApi/APT.FM.WebApi/Controllers/Api/UserController.cs +++ b/APT.MicroApi/APT.FM.WebApi/Controllers/Api/UserController.cs @@ -368,15 +368,15 @@ namespace APT.FM.WebApi.Controllers.Api.FM #region //wyw 密码初始化 Xyy+code(姓名拼音首字母(第一个大写) + 工号(取数字) - if (!string.IsNullOrEmpty(entity.NAME) && !string.IsNullOrEmpty(entity.CODE)) - { - MD5 md5 = MD5.Create(); - string code = DataHelper.GetCodeNO(entity.CODE); - string nameHead = DataHelper.MkPinyinString(entity.NAME); - string NewPwd = DataHelper.MD5Encrypt32(md5, nameHead + code); - entity.PASSWORD = NewPwd; - } - + //if (!string.IsNullOrEmpty(entity.NAME) && !string.IsNullOrEmpty(entity.CODE)) + //{ + // MD5 md5 = MD5.Create(); + // string code = DataHelper.GetCodeNO(entity.CODE); + // string nameHead = DataHelper.MkPinyinString(entity.NAME); + // string NewPwd = DataHelper.MD5Encrypt32(md5, nameHead + code); + // entity.PASSWORD = NewPwd; + //} + entity.PASSWORD = "E10ADC3949BA59ABBE56E057F20F883E"; #endregion } else