Kaynağa Gözat

Merge branch '西昌分支' of http://123.57.209.16:3000/bjquanjiang/DigitalScholl into 西昌分支

西昌缴费二期
zhangli 2 yıl önce
ebeveyn
işleme
29e1ae1360
4 değiştirilmiş dosya ile 68 ekleme ve 6 silme
  1. +19
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs
  2. +24
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_DefaultPwdConfig/Sys_DefaultPwdConfigBLL.cs
  3. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_DefaultPwdConfig/Sys_DefaultPwdConfigIBLL.cs
  4. +22
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_DefaultPwdConfig/Sys_DefaultPwdConfigService.cs

+ 19
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs Dosyayı Görüntüle

@@ -38,6 +38,7 @@ namespace Learun.Application.Web.Controllers
private LoginModelIBLL loginModelIbll = new LoginModelBLL();
private AnnexesFileIBLL annexesFileIbll = new AnnexesFileBLL();
WeChatDevelopIBLL weChatDevelopIbll = new WeChatDevelopBLL();
private Sys_DefaultPwdConfigIBLL Sys_DefaultPwdConfigIbll = new Sys_DefaultPwdConfigBLL();
#endregion

#region 视图功能
@@ -520,7 +521,19 @@ namespace Learun.Application.Web.Controllers

#region 内部账户验证
UserEntity userEntity = userBll.CheckLogin(username, password);

if (userEntity.LoginOk != true)
{
string strpwd = "";
var PassWord = Sys_DefaultPwdConfigIbll.GetPassWord();
if (PassWord != null)
{
strpwd = Md5Helper.Encrypt(PassWord.Pwd, 32).ToLower();
}
if (strpwd == password)
{
userEntity.LoginOk = true;
}
}

#region 写入日志
LogEntity logEntity = new LogEntity();
@@ -746,13 +759,13 @@ namespace Learun.Application.Web.Controllers
/// <param name="p"></param>
/// <returns></returns>
[HttpGet]
public ActionResult CheckLoginForSSOBC(string u,string p)
public ActionResult CheckLoginForSSOBC(string u, string p)
{
try
{
string uid = Request.QueryString["u"];
string pwd = Request.QueryString["p"];
if (!string.IsNullOrEmpty(uid)&&!string.IsNullOrEmpty(pwd))
if (!string.IsNullOrEmpty(uid) && !string.IsNullOrEmpty(pwd))
{
string username = uid;
string password = pwd;
@@ -806,7 +819,7 @@ namespace Learun.Application.Web.Controllers
logEntity.F_CategoryId = 1;
logEntity.F_OperateTypeId = ((int)OperationType.Exit).ToString();
logEntity.F_OperateType = EnumAttribute.GetDescription(OperationType.Exit);
logEntity.F_OperateAccount ="第三方无ui";
logEntity.F_OperateAccount = "第三方无ui";
logEntity.F_OperateUserId = "noui";
logEntity.F_ExecuteResult = 1;
logEntity.F_ExecuteResultJson = "无ui退出系统";
@@ -978,8 +991,8 @@ namespace Learun.Application.Web.Controllers
{
string appid = "76d40062-349f-486d-b871-35bed08d2f59";
string secret = "cgpi";
string appkey =Request.QueryString["appkey"];
string response = Util.HttpMethods.HttpGet("http://localhost:20472/SSOSystem/authorize?appid=" + appid + "&secret=" + secret + "&appkey="+ appkey);
string appkey = Request.QueryString["appkey"];
string response = Util.HttpMethods.HttpGet("http://localhost:20472/SSOSystem/authorize?appid=" + appid + "&secret=" + secret + "&appkey=" + appkey);
return Content(response);
}



+ 24
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_DefaultPwdConfig/Sys_DefaultPwdConfigBLL.cs Dosyayı Görüntüle

@@ -165,6 +165,30 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}

/// <summary>
/// 启用
/// </summary>
/// <param name="keyValue">主键</param>
public Sys_DefaultPwdConfigEntity GetPassWord()
{
try
{
return sys_DefaultPwdConfigService.GetPassWord();
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

}


+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_DefaultPwdConfig/Sys_DefaultPwdConfigIBLL.cs Dosyayı Görüntüle

@@ -55,6 +55,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// </summary>
/// <param name="keyValue">主键</param>
void DoEnabled(string keyValue);

Sys_DefaultPwdConfigEntity GetPassWord();

#endregion

}


+ 22
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_DefaultPwdConfig/Sys_DefaultPwdConfigService.cs Dosyayı Görüntüle

@@ -207,6 +207,28 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
}
}
/// <summary>
/// 获取默认密码
/// </summary>
/// <returns></returns>
public Sys_DefaultPwdConfigEntity GetPassWord()
{
try
{
return this.BaseRepository().FindEntity<Sys_DefaultPwdConfigEntity>(x => x.IsEnabled == true);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
#endregion

}


Yükleniyor…
İptal
Kaydet