|
|
@@ -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 }); |
|
|
|