fix: 教师携带学生账号查询学生参数信息
This commit is contained in:
@@ -90,6 +90,7 @@ func (s *PtNeConfigDataController) Info(c *gin.Context) {
|
||||
var querys struct {
|
||||
NeType string `form:"neType" binding:"required"`
|
||||
ParamName string `form:"paramName" binding:"required"`
|
||||
Student string `form:"student"` // 教师携带学生账号查询
|
||||
}
|
||||
if err := c.ShouldBindQuery(&querys); err != nil {
|
||||
c.JSON(400, result.CodeMsg(400, i18n.TKey(language, "app.common.err400")))
|
||||
@@ -106,6 +107,11 @@ func (s *PtNeConfigDataController) Info(c *gin.Context) {
|
||||
}
|
||||
if v.RoleKey == "teacher" {
|
||||
stubType = "1"
|
||||
// 查看学生数据
|
||||
if querys.Student != "" {
|
||||
currentUserName = querys.Student
|
||||
stubType = "2"
|
||||
}
|
||||
}
|
||||
if v.RoleKey == "student" {
|
||||
stubType = "2"
|
||||
|
||||
Reference in New Issue
Block a user