This commit is contained in:
guange 2016-06-24 15:40:27 +08:00
parent 9ec1f916b6
commit c522d7160c
1 changed files with 1 additions and 1 deletions

View File

@ -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])