Commit a8340044 authored by szh's avatar szh

update

parent 0d5e1170
......@@ -185,7 +185,7 @@ func (courseActionUsersApi *CourseActionUsersApi) SignAction(c *gin.Context) {
return
}
if courseActionUsers.ID == 0 || *courseActionUsers.Uid == 0 {
if *courseActionUsers.Aid == 0 || *courseActionUsers.Uid == 0 {
response.FailWithMessage("参数为空", c)
return
}
......
......@@ -78,7 +78,7 @@ func (courseListService *CourseListService)GetCourseListInfoList(info courseReq.
}
for _, v := range courseLists {
var cs course.CourseSignup
err = global.GVA_DB.Model(&course.CourseSignup{}).Where("uid = ? and cid = ?",cu.ID,v.ID).First(&cs).Error
err = global.GVA_DB.Debug().Model(&course.CourseSignup{}).Where("uid = ? and cid = ?",cu.ID,v.ID).First(&cs).Error
if err != nil && err != gorm.ErrRecordNotFound{
return
} else if err != nil && err == gorm.ErrRecordNotFound {
......
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