Commit a8340044 authored by szh's avatar szh

update

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