This commit is contained in:
guange 2016-06-22 17:09:49 +08:00
parent 9b42b4e7f7
commit 1470cafe57
1 changed files with 1 additions and 1 deletions

View File

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