This commit is contained in:
yutao 2015-07-18 17:01:36 +08:00
commit 5bae0b674c
1 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ module ApiHelper
(user.language.nil? || user.language == "") ? 'zh':user.language
end
# 获取课程作业的状态
# 学生获取课程作业的状态
def get_homework_status homework
homework_status = ""
if !homework.nil?
@ -75,9 +75,9 @@ module ApiHelper
when 1
homework_status = show_homework_deadline homework
when 2
homework_status = "正在匿评"
homework_status = "正在匿评"
when 3
homework_status = "匿评结束"
homework_status = "匿评结束"
end
elsif homework.homework_type == 0
homework_status = "未启用匿评"