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