This commit is contained in:
parent
9b42b4e7f7
commit
1470cafe57
|
@ -187,7 +187,7 @@ class WechatsController < ActionController::Base
|
||||||
|
|
||||||
def join_class(content, user)
|
def join_class(content, user)
|
||||||
cs = CoursesService.new
|
cs = CoursesService.new
|
||||||
status = cs.join_course({invite_code: content.upcase.strip}, current_user)
|
status = cs.join_course({invite_code: content.upcase.strip}, user)
|
||||||
logger.info status
|
logger.info status
|
||||||
if status[:state] != 0
|
if status[:state] != 0
|
||||||
raise CoursesService::JoinCourseError.message(status[:state])
|
raise CoursesService::JoinCourseError.message(status[:state])
|
||||||
|
|
Loading…
Reference in New Issue