diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/FormView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/FormView.cshtml index 700d24c55..85395fd68 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/FormView.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/FormView.cshtml @@ -110,7 +110,7 @@ }, methods: { getData: function () { - $.get('/UserCenter/GetStudentInfo?stuNo=' + keyValue, function (ref) { + $.get('/UserCenter/GetStudentInfo?stuId=' + keyValue, function (ref) { this.studentInfo = ref.data.userInfo; this.baseInfo = ref.data.basicInfo; this.headUrl = ref.data.userInfo.Photo; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UserCenterController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UserCenterController.cs index dff37f673..2356688f9 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UserCenterController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UserCenterController.cs @@ -202,13 +202,13 @@ namespace Learun.Application.Web.Controllers return JsonResult(jsonData); } - public ActionResult GetStudentInfo(string stuNo = null) + public ActionResult GetStudentInfo(string stuId = null) { var data = LoginUserInfo.Get(); var result = new StuInfoBasicEntity(); - if (stuNo != null) + if (stuId != null) { - result = stuInfoBasicIBLL.GetStuInfoBasicEntityByStuNo(stuNo); + result = stuInfoBasicIBLL.GetStuInfoBasicEntity(stuId); } else { @@ -222,7 +222,11 @@ namespace Learun.Application.Web.Controllers { photo = "/" + photo.Substring(photo.IndexOf("Resource")); } - + else + { + photo = Config.GetValue("fileHeadImg") +"/"+ (result.GenderNo==true? "on-boy.jpg" : "on-girl.jpg"); + photo = "/" + photo.Substring(photo.IndexOf("Content")); + } result.Photo = photo; } return Success(new { basicInfo = data, userInfo = result });