This commit is contained in:
parent
9ec1f916b6
commit
c522d7160c
|
@ -194,7 +194,7 @@ class WechatsController < ActionController::Base
|
|||
raise "课程不存在" unless course
|
||||
|
||||
cs = CoursesService.new
|
||||
status = cs.join_course(course.invite_code, user)
|
||||
status = cs.join_course({invite_code: course.invite_code}, user)
|
||||
logger.info status
|
||||
if status[:state] != 0
|
||||
raise CoursesService::JoinCourseError.message(status[:state])
|
||||
|
|
Loading…
Reference in New Issue