|
|
|
@ -316,7 +316,7 @@ class HomeworksService
|
|
|
|
|
|
|
|
|
|
if work.work_status == 0
|
|
|
|
|
is_complete = myshixun_endtime && (myshixun_endtime < setting_time.end_time)
|
|
|
|
|
if is_complete || (myshixun.created_at < setting_time.end_time && (!homework.allow_late || setting_time.end_time <= Time.now))
|
|
|
|
|
if is_complete || (myshixun.created_at < setting_time.end_time && (!homework.allow_late || setting_time.end_time >= Time.now))
|
|
|
|
|
work.work_status = 1
|
|
|
|
|
elsif homework.allow_late && myshixun.created_at < homework.late_time
|
|
|
|
|
work.work_status = 2
|
|
|
|
|