mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
exam index seed bonus => seed points
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ class Exam extends NexusModel
|
||||
self::INDEX_UPLOADED => ['name' => 'Uploaded', 'unit' => 'GB', 'source_user_field' => 'uploaded'],
|
||||
self::INDEX_SEED_TIME_AVERAGE => ['name' => 'Seed time average', 'unit' => 'Hour', 'source_user_field' => 'seedtime'],
|
||||
self::INDEX_DOWNLOADED => ['name' => 'Downloaded', 'unit' => 'GB', 'source_user_field' => 'downloaded'],
|
||||
self::INDEX_SEED_BONUS => ['name' => 'Seed bonus', 'unit' => '', 'source_user_field' => 'seed_points'],
|
||||
self::INDEX_SEED_BONUS => ['name' => 'Seed points', 'unit' => '', 'source_user_field' => 'seed_points'],
|
||||
];
|
||||
|
||||
const FILTER_USER_CLASS = 'classes';
|
||||
|
||||
@@ -482,7 +482,7 @@ class ExamRepository extends BaseRepository
|
||||
$attributes['index'] = $index['index'];
|
||||
$attributes['created_at'] = $now;
|
||||
$attributes['updated_at'] = $now;
|
||||
$attributes['value'] = $user->{Exam::$indexes[$index['index']]['source_user_field']};
|
||||
$attributes['value'] = $user->{Exam::$indexes[$index['index']]['source_user_field']} ?? 0;
|
||||
do_log("[GET_TOTAL_VALUE]: " . $attributes['value']);
|
||||
$newVersionProgress = ExamProgress::query()
|
||||
->where('exam_user_id', $examUser->id)
|
||||
|
||||
Reference in New Issue
Block a user