mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 21:41:03 +08:00
[exam] add progress do update the same time
This commit is contained in:
@@ -4,7 +4,7 @@ namespace App\Models;
|
||||
|
||||
class ExamUser extends NexusModel
|
||||
{
|
||||
protected $fillable = ['exam_id', 'uid', 'status', 'result'];
|
||||
protected $fillable = ['exam_id', 'uid', 'status', 'progress'];
|
||||
|
||||
public $timestamps = true;
|
||||
|
||||
@@ -17,7 +17,7 @@ class ExamUser extends NexusModel
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'result' => 'json'
|
||||
'progress' => 'json'
|
||||
];
|
||||
|
||||
public function getStatusTextAttribute()
|
||||
|
||||
Reference in New Issue
Block a user