locale + exam assign and checkout cronjob

This commit is contained in:
xiaomlove
2021-04-28 19:44:48 +08:00
parent 034d1c23fb
commit 1c31f4b22d
34 changed files with 1278 additions and 90 deletions
+5 -1
View File
@@ -4,7 +4,7 @@ namespace App\Models;
class ExamUser extends NexusModel
{
protected $fillable = ['exam_id', 'uid', 'status', 'progress', 'begin', 'end'];
protected $fillable = ['exam_id', 'uid', 'status', 'progress', 'begin', 'end', 'is_done'];
public $timestamps = true;
@@ -16,6 +16,10 @@ class ExamUser extends NexusModel
self::STATUS_FINISHED => ['text' => 'Finished'],
];
const IS_DONE_YES = 1;
const IS_DONE_NO = 0;
protected $casts = [
'progress' => 'json'
];