|
|
|
@ -136,7 +136,7 @@ class HomeworkCommon < ApplicationRecord
|
|
|
|
|
|
|
|
|
|
# 作业查看最新成绩
|
|
|
|
|
def update_score identity
|
|
|
|
|
identity < Course::NORMAL && publish_time.present? && publish_time < Time.now
|
|
|
|
|
identity < Course::NORMAL && publish_time.present? && publish_time < Time.now && !course.is_end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# 作业能否立即发布
|
|
|
|
|