Commit 5dae05f0 authored by 黄奎's avatar 黄奎

新增接口验证判断

parent ab4ad28c
...@@ -1435,8 +1435,13 @@ namespace Edu.WebApi.Controllers.User ...@@ -1435,8 +1435,13 @@ namespace Edu.WebApi.Controllers.User
public ApiResult GetStudent() public ApiResult GetStudent()
{ {
var StuId = base.ParmJObj.GetInt("StuId", 0); var StuId = base.ParmJObj.GetInt("StuId", 0);
var extModel = studentModule.GetStudentModule(StuId); if (StuId <= 0)
{
return ApiResult.ParamIsNull(message: "请传递学生编号");
}
classModule.GetStudentCurrentOrderModule(StuId, out int newClassStatus, out string classStatusName, out _, out _); classModule.GetStudentCurrentOrderModule(StuId, out int newClassStatus, out string classStatusName, out _, out _);
var extModel = studentModule.GetStudentModule(StuId);
var obj = new var obj = new
{ {
extModel.StuId, extModel.StuId,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment