This commit is contained in:
guange 2016-06-22 16:48:34 +08:00
parent 7700445c17
commit 0929d2ac28
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class WechatsController < ActionController::Base
def join_class(content, user)
cs = CoursesService.new
status = cs.join_course({invite_code: content.trim}, current_user)
status = cs.join_course({invite_code: content.strip}, current_user)
logger.info status
status[:state] == 0 ? status[:course] : nil
end