This commit is contained in:
parent
7700445c17
commit
0929d2ac28
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue