count(); return $num; } public static function getLevelName($levelId) { $level = self::field('name,weights')->findOrEmpty($levelId)->toArray(); if (empty($level)) { return ''; } return $level['name']. '(' . $level['weights'] . ')级'; } public static function getLevelNameTwo($levelId) { $level = self::field('name,weights')->findOrEmpty($levelId)->toArray(); if (empty($level)) { return ''; } return $level['name']; } }