reset-admin

This commit is contained in:
xiaomlove
2021-04-21 19:54:50 +08:00
parent beb3a49bf2
commit 959db3cff2
139 changed files with 124 additions and 133052 deletions

View File

@@ -2,12 +2,8 @@
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Exam extends NexusModel
{
use HasFactory;
protected $fillable = ['name', 'description', 'begin', 'end', 'status'];
const STATUS_ENABLED = 0;

View File

@@ -2,12 +2,7 @@
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ExamProgress extends NexusModel
{
use HasFactory;
protected $fillable = ['exam_id', 'uid', 'type_id', 'value'];
}

View File

@@ -2,13 +2,10 @@
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Support\Arr;
class Setting extends NexusModel
{
use HasFactory;
protected $fillable = ['name', 'value'];
public static function get($name = null)

View File

@@ -28,7 +28,6 @@ class User extends Authenticatable
const CLASS_VIP = "10";
const CLASS_RETIREE = "11";
const CLASS_UPLOADER = "12";
const CLASS_FORUM_MODERATOR = "12.1";
const CLASS_MODERATOR = "13";
const CLASS_ADMINISTRATOR = "14";
const CLASS_SYSOP = "15";
@@ -48,7 +47,6 @@ class User extends Authenticatable
self::CLASS_VIP => ['text' => 'Vip'],
self::CLASS_RETIREE => ['text' => 'Retiree'],
self::CLASS_UPLOADER => ['text' => 'Uploader'],
self::CLASS_FORUM_MODERATOR => ['text' => 'Forum Moderator'],
self::CLASS_MODERATOR => ['text' => 'Moderator'],
self::CLASS_ADMINISTRATOR => ['text' => 'Administrator'],
self::CLASS_SYSOP => ['text' => 'Sysop'],