This commit is contained in:
parent
7700445c17
commit
0929d2ac28
|
@ -183,7 +183,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.trim}, current_user)
|
status = cs.join_course({invite_code: content.strip}, current_user)
|
||||||
logger.info status
|
logger.info status
|
||||||
status[:state] == 0 ? status[:course] : nil
|
status[:state] == 0 ? status[:course] : nil
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue